Commit c63f58a8 authored by Varun Patil's avatar Varun Patil

Make some more fixes

parent a25f9ca7
<!DOCTYPE HTML>
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style> <style>
a {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.logodiv { .logodiv {
width: 45%; width: 45%;
margin: 0 auto; margin: 0 auto;
...@@ -15,9 +27,14 @@ ...@@ -15,9 +27,14 @@
font-weight: 200; font-weight: 200;
font-size: 1.5em; font-size: 1.5em;
} }
.gap {
height: 35%; .lowerdiv {
position: fixed;
bottom: 8%;
left: 0;
width: 100%;
} }
.logindiv { .logindiv {
margin: 0 auto; margin: 0 auto;
width: 100%; width: 100%;
...@@ -53,19 +70,19 @@ ...@@ -53,19 +70,19 @@
<img src="lotus.png" class="logo"> <img src="lotus.png" class="logo">
<div class="app-name">InstiApp</div> <div class="app-name">InstiApp</div>
</div> </div>
<div class="gap"></div>
<div class="logindiv"> <div class="lowerdiv">
<a class="login" href="https://gymkhana.iitb.ac.in/sso/account/login/?next=/sso/oauth/authorize/%3Fclient_id%3DvR1pU7wXWyve1rUkg0fMS6StL1Kr6paoSmRIiLXJ%26response_type%3Dcode%26scope%3Dbasic%2520profile%2520picture%2520sex%2520ldap%2520phone%2520insti_address%2520program%2520secondary_emails%26redirect_uri=https://redirecturi"> <div class="logindiv">
LOG IN VIA SSO <a class="login" href="https://gymkhana.iitb.ac.in/sso/account/login/?next=/sso/oauth/authorize/%3Fclient_id%3DvR1pU7wXWyve1rUkg0fMS6StL1Kr6paoSmRIiLXJ%26response_type%3Dcode%26scope%3Dbasic%2520profile%2520picture%2520sex%2520ldap%2520phone%2520insti_address%2520program%2520secondary_emails%26redirect_uri=https://redirecturi">
</a> LOG IN VIA SSO
<br><br> </a>
or <br><br>
<br> or
<a class="guest" href="https://guesturi"> <br>
Continue as a Guest <a class="guest" href="https://guesturi">
</a> Continue as a Guest
</a>
</div>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -144,6 +144,14 @@ public class LoginActivity extends AppCompatActivity { ...@@ -144,6 +144,14 @@ public class LoginActivity extends AppCompatActivity {
login(authCode, redirectUri.toString(), authCode); login(authCode, redirectUri.toString(), authCode);
return true; return true;
} }
/* Guest Login */
if (url.startsWith("https://guesturi")) {
Intent intent = new Intent(LoginActivity.this, MainActivity.class);
startActivity(intent);
return true;
}
/* Load URL */ /* Load URL */
view.loadUrl(url); view.loadUrl(url);
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment