Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
account-app
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
rc
account-app
Commits
15ea2768
Commit
15ea2768
authored
5 years ago
by
Mitchell Moore
Browse files
Options
Downloads
Patches
Plain Diff
Add backend todo to pull values
parent
e2ab577a
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Feat update ui (pre react)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/__init__.py
+14
-0
14 additions, 0 deletions
app/__init__.py
app/static/scripts/function.js
+2
-1
2 additions, 1 deletion
app/static/scripts/function.js
with
16 additions
and
1 deletion
app/__init__.py
+
14
−
0
View file @
15ea2768
...
@@ -21,6 +21,18 @@ def create_app(config_name):
...
@@ -21,6 +21,18 @@ def create_app(config_name):
if
'
uid
'
not
in
session
:
if
'
uid
'
not
in
session
:
session
[
'
uid
'
]
=
str
(
uuid
.
uuid4
())
session
[
'
uid
'
]
=
str
(
uuid
.
uuid4
())
if
'
bid
'
not
in
session
:
# Todo get blazerid from Shib/BasicAuth
pass
if
'
fullname
'
not
in
session
:
# Todo get fullname from Shib/BasicAuth
pass
if
'
email
'
not
in
session
:
# Todo get email from Shib/BasicAuth
pass
if
"
redir
"
in
request
.
args
and
'
return_url
'
not
in
session
:
# check for redir arg in url
if
"
redir
"
in
request
.
args
and
'
return_url
'
not
in
session
:
# check for redir arg in url
session
[
'
return_url
'
]
=
request
.
args
.
get
(
"
redir
"
)
session
[
'
return_url
'
]
=
request
.
args
.
get
(
"
redir
"
)
elif
"
redir
"
not
in
request
.
args
and
'
return_url
'
not
in
session
:
elif
"
redir
"
not
in
request
.
args
and
'
return_url
'
not
in
session
:
...
@@ -28,6 +40,8 @@ def create_app(config_name):
...
@@ -28,6 +40,8 @@ def create_app(config_name):
else
:
else
:
session
[
'
return_url
'
]
=
request
.
referrer
session
[
'
return_url
'
]
=
request
.
referrer
# return render_template('auth/SignUp.html', room_id=session['uid'], username=session['username'], fullname=session['fullname'],
# email=session['email'], referrer=session['return_url'])
return
render_template
(
'
auth/SignUp.html
'
,
room_id
=
session
[
'
uid
'
],
referrer
=
session
[
'
return_url
'
])
return
render_template
(
'
auth/SignUp.html
'
,
room_id
=
session
[
'
uid
'
],
referrer
=
session
[
'
return_url
'
])
# misc page error catching
# misc page error catching
...
...
This diff is collapsed.
Click to expand it.
app/static/scripts/function.js
+
2
−
1
View file @
15ea2768
...
@@ -4,9 +4,10 @@ function displayloading() {
...
@@ -4,9 +4,10 @@ function displayloading() {
function
request_account
()
{
function
request_account
()
{
socket
.
emit
(
'
request account
'
,
{
socket
.
emit
(
'
request account
'
,
{
username
:
document
.
getElementById
(
"
username
"
).
value
,
fullname
:
document
.
getElementById
(
"
fullname
"
).
value
,
fullname
:
document
.
getElementById
(
"
fullname
"
).
value
,
reason
:
document
.
getElementById
(
"
reason
"
).
value
,
reason
:
document
.
getElementById
(
"
reason
"
).
value
,
username
:
document
.
getElementById
(
"
bid
"
).
value
email
:
document
.
getElementById
(
"
email
"
).
value
})
})
}
}
...
...
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