Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
c63f58a8
Commit
c63f58a8
authored
Jul 01, 2018
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some more fixes
parent
a25f9ca7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
14 deletions
+39
-14
app/src/main/assets/login.html
app/src/main/assets/login.html
+31
-14
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/LoginActivity.java
.../main/java/in/ac/iitb/gymkhana/iitbapp/LoginActivity.java
+8
-0
No files found.
app/src/main/assets/login.html
View file @
c63f58a8
<!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
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/LoginActivity.java
View file @
c63f58a8
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment