Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
dec9efa0
Commit
dec9efa0
authored
5 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Add automatic confirmation mail after changing e-mail adress.
parent
640bcc2b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/auth/views.py
+1
-0
1 addition, 0 deletions
app/auth/views.py
app/templates/auth/email/confirm.html.j2
+0
-1
0 additions, 1 deletion
app/templates/auth/email/confirm.html.j2
app/templates/auth/email/confirm.txt.j2
+0
-2
0 additions, 2 deletions
app/templates/auth/email/confirm.txt.j2
with
1 addition
and
3 deletions
app/auth/views.py
+
1
−
0
View file @
dec9efa0
...
@@ -139,6 +139,7 @@ def profile():
...
@@ -139,6 +139,7 @@ def profile():
current_user
.
confirmed
=
False
current_user
.
confirmed
=
False
db
.
session
.
add
(
current_user
)
db
.
session
.
add
(
current_user
)
db
.
session
.
commit
()
db
.
session
.
commit
()
resend_confirmation
()
return
redirect
(
url_for
(
'
auth.profile
'
))
return
redirect
(
url_for
(
'
auth.profile
'
))
return
render_template
(
'
auth/profile.html.j2
'
,
form
=
form
,
return
render_template
(
'
auth/profile.html.j2
'
,
form
=
form
,
title
=
'
Profile
'
)
title
=
'
Profile
'
)
This diff is collapsed.
Click to expand it.
app/templates/auth/email/confirm.html.j2
+
0
−
1
View file @
dec9efa0
<p>Dear {{ user.username }},</p>
<p>Dear {{ user.username }},</p>
<p>Welcome to <b>Opaque</b>!</p>
<p>To confirm your account please <a href="{{ url_for('auth.confirm', token=token, _external=True) }}">click here</a>.</p>
<p>To confirm your account please <a href="{{ url_for('auth.confirm', token=token, _external=True) }}">click here</a>.</p>
<p>Alternatively, you can paste the following link in your browser's address bar:</p>
<p>Alternatively, you can paste the following link in your browser's address bar:</p>
<p>{{ url_for('auth.confirm', token=token, _external=True) }}</p>
<p>{{ url_for('auth.confirm', token=token, _external=True) }}</p>
...
...
This diff is collapsed.
Click to expand it.
app/templates/auth/email/confirm.txt.j2
+
0
−
2
View file @
dec9efa0
Dear {{ user.username }},
Dear {{ user.username }},
Welcome to Opaque!
To confirm your account please click on the following link:
To confirm your account please click on the following link:
{{ url_for('auth.confirm', token=token, _external=True) }}
{{ url_for('auth.confirm', token=token, _external=True) }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment