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 ace91c72
authored
Jun 12, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update info
1 parent
6b94d262
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
opensipkd/base/views/register.py
opensipkd/base/views/register.py
View file @
ace91c7
...
@@ -369,12 +369,17 @@ class Views(BaseView):
...
@@ -369,12 +369,17 @@ class Views(BaseView):
user
=
self
.
req
.
user
user
=
self
.
req
.
user
if
not
self
.
req
.
POST
and
user
and
user
.
external_identities
.
count
()
>
0
:
if
not
self
.
req
.
POST
and
user
and
user
.
external_identities
.
count
()
>
0
:
from
datetime
import
timedelta
remain
=
regenerate_security_code
(
user
)
remain
=
regenerate_security_code
(
user
)
five_minutes
=
timedelta
(
1.0
/
24
/
60
)
if
remain
>
299
:
send_email_security_code
(
send_email_security_code
(
self
.
req
,
user
,
remain
,
'Request profile change'
,
'email-profile-password'
,
self
.
req
,
user
,
remain
,
'Request profile change'
,
'email-profile-password'
,
'email-profile-password.tpl'
)
'email-profile-password.tpl'
)
self
.
req
.
session
.
flash
(
self
.
req
.
session
.
flash
(
"Security code/password update profile sudah dikirimkan ke
%
s"
%
user
.
email
)
"Security code/password update profile sudah dikirimkan ke
%
s
\n
Jika tidak ditemukan cari dalam SPAM
"
%
user
.
email
)
def
before_add
(
self
):
def
before_add
(
self
):
result
=
{}
result
=
{}
...
...
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