Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d7a4c38
authored
Sep 23, 2021
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan home security_code
1 parent
25d39c8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
opensipkd/base/views/user_login.py
opensipkd/base/views/user_login.py
View file @
6d7a4c3
...
@@ -297,11 +297,11 @@ def send_email_security_code(
...
@@ -297,11 +297,11 @@ def send_email_security_code(
or
'mail.username'
not
in
settings
:
or
'mail.username'
not
in
settings
:
return
return
if
'base_url'
not
in
settings
:
#
if 'base_url' not in settings:
return
#
return
url
=
'{}/password/{}'
.
format
(
url
=
'{}/password/{}'
.
format
(
settings
[
'base_url'
]
,
user
.
security_code
)
request
.
route_url
(
'home'
)
,
user
.
security_code
)
minutes
=
int
(
time_remain
.
seconds
/
60
)
minutes
=
int
(
time_remain
.
seconds
/
60
)
data
=
dict
(
url
=
url
,
minutes
=
minutes
)
data
=
dict
(
url
=
url
,
minutes
=
minutes
)
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
...
...
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