Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit af69307e
authored
Jan 05, 2023
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan oauth login
1 parent
d58e4def
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
opensipkd/base/views/user_login.py
opensipkd/base/views/user_login.py
View file @
af69307
...
...
@@ -150,7 +150,9 @@ def oauth2_login(request, params=None):
external
.
from_dict
(
values
)
DBSession
.
add
(
external
)
DBSession
.
flush
()
if
user
and
user
.
status
!=
1
:
raise
Oauth2UserExc
(
"User anda masih menunggu verifikasi atau lagi di blokir"
)
# # todo: what is this????
# # values['access_token']
# # values['alt_token']
...
...
@@ -243,9 +245,6 @@ class ViewLogin(BaseView):
return
HTTPFound
(
location
=
request
.
route_url
(
'login'
))
if
user
and
user
.
status
==
1
:
return
redirect_login
(
request
,
user
)
else
:
message
=
"User anda masih menunggu verifikasi atau lagi di blokir"
request
.
session
.
flash
(
message
,
"error"
)
login
=
""
if
login_tpl
==
'templates/login.pt'
:
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment