Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
self-reg-form
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krish Moodbidri
self-reg-form
Commits
a4a17f1e
Commit
a4a17f1e
authored
3 years ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
added cerfity buttom feature
parent
ff481fa2
Branches
feat-check-certify
No related tags found
1 merge request
!2
added cerfity buttom feature
Pipeline
#5806
failed
3 years ago
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/__init__.py
+8
-4
8 additions, 4 deletions
app/__init__.py
app/templates/errors/certification.html
+1
-2
1 addition, 2 deletions
app/templates/errors/certification.html
with
9 additions
and
6 deletions
app/__init__.py
+
8
−
4
View file @
a4a17f1e
...
@@ -58,7 +58,7 @@ def create_app(config_name):
...
@@ -58,7 +58,7 @@ def create_app(config_name):
return
render_template
(
'
errors/blocked.html
'
)
return
render_template
(
'
errors/blocked.html
'
)
elif
rc_util
.
check_state
(
session
[
'
user
'
].
get
(
'
username
'
))
==
"
certification
"
:
elif
rc_util
.
check_state
(
session
[
'
user
'
].
get
(
'
username
'
))
==
"
certification
"
:
return
re
nder_template
(
'
errors/certification.html
'
)
return
re
direct
(
url_for
(
'
certify_account
'
))
else
:
else
:
return
render_template
(
'
auth/SignUp.html
'
,
room_id
=
session
[
'
uid
'
],
return
render_template
(
'
auth/SignUp.html
'
,
room_id
=
session
[
'
uid
'
],
...
@@ -74,9 +74,13 @@ def create_app(config_name):
...
@@ -74,9 +74,13 @@ def create_app(config_name):
def
account_block
():
def
account_block
():
return
render_template
(
'
errors/blocked.html
'
)
return
render_template
(
'
errors/blocked.html
'
)
@app.route
(
'
/certify_account
'
)
@app.route
(
"
/certify_account
"
,
methods
=
[
'
GET
'
,
'
POST
'
])
def
error_certify
():
def
certify_account
():
return
render_template
(
'
errors/certification.html
'
)
if
request
.
method
==
'
POST
'
:
if
request
.
form
.
get
(
'
action1
'
)
==
'
VALUE1
'
:
rc_util
.
update_state
(
session
[
'
user
'
].
get
(
'
username
'
),
ok
)
elif
request
.
method
==
'
GET
'
:
return
render_template
(
'
errors/certification.html
'
,
form
=
form
)
# misc page error catching
# misc page error catching
@app.errorhandler
(
403
)
@app.errorhandler
(
403
)
...
...
This diff is collapsed.
Click to expand it.
app/templates/errors/certification.html
+
1
−
2
View file @
a4a17f1e
...
@@ -53,8 +53,7 @@
...
@@ -53,8 +53,7 @@
<div
class=
"col-md-10 col-sm-10 my-col"
>
<div
class=
"col-md-10 col-sm-10 my-col"
>
<div
id=
"form-wrapper"
>
<div
id=
"form-wrapper"
>
<h2>
Account/User Certification Needed
</h2>
<h2>
Account/User Certification Needed
</h2>
<p
style=
"font-size:110%;"
>
{{ welcome_msg |safe }}
</p>
<button
class=
"btn btn-primary btn-md"
id=
"submit"
name=
"submit"
type=
"button"
value=
"certify"
>
Certify Account
</button>
<button
class=
"btn btn-primary btn-md"
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"accountCertification()"
>
Certify Account
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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