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
88a8a6a0
Commit
88a8a6a0
authored
5 years ago
by
Mitchell Moore
Browse files
Options
Downloads
Patches
Plain Diff
Fix variable grabbing and referrer
parent
47770186
No related branches found
No related tags found
1 merge request
!2
Feat update ui (pre react)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/__init__.py
+1
-1
1 addition, 1 deletion
app/__init__.py
app/static/scripts/function.js
+3
-3
3 additions, 3 deletions
app/static/scripts/function.js
app/templates/auth/SignUp.html
+5
-5
5 additions, 5 deletions
app/templates/auth/SignUp.html
with
9 additions
and
9 deletions
app/__init__.py
+
1
−
1
View file @
88a8a6a0
...
@@ -30,7 +30,7 @@ def create_app(config_name):
...
@@ -30,7 +30,7 @@ def create_app(config_name):
if
'
user
'
not
in
session
:
if
'
user
'
not
in
session
:
get_shib_user
()
get_shib_user
()
if
"
redir
"
in
request
.
args
and
'
return_url
'
not
in
session
:
# check for redir arg in url
if
"
redir
"
in
request
.
args
:
# 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
:
...
...
This diff is collapsed.
Click to expand it.
app/static/scripts/function.js
+
3
−
3
View file @
88a8a6a0
...
@@ -4,9 +4,9 @@ function displayloading() {
...
@@ -4,9 +4,9 @@ function displayloading() {
function
request_account
()
{
function
request_account
()
{
socket
.
emit
(
'
request account
'
,
{
socket
.
emit
(
'
request account
'
,
{
username
:
document
.
getElementById
(
"
username
"
).
value
,
username
:
document
.
getElementById
(
"
username
"
).
innerText
,
fullname
:
document
.
getElementById
(
"
fullname
"
).
value
,
fullname
:
document
.
getElementById
(
"
fullname
"
).
innerText
,
reason
:
document
.
getElementById
(
"
reason
"
).
value
,
reason
:
document
.
getElementById
(
"
reason
"
).
innerText
,
email
:
document
.
getElementById
(
"
email
"
).
value
email
:
document
.
getElementById
(
"
email
"
).
value
})
})
}
}
...
...
This diff is collapsed.
Click to expand it.
app/templates/auth/SignUp.html
+
5
−
5
View file @
88a8a6a0
...
@@ -95,18 +95,18 @@
...
@@ -95,18 +95,18 @@
<div
id=
"test"
>
<div
id=
"test"
>
<form
action=
"."
method=
"post"
onsubmit=
""
class=
".bg-light"
>
<form
action=
"."
method=
"post"
onsubmit=
""
class=
".bg-light"
>
<div
class=
"signUpContainer"
>
<div
class=
"signUpContainer"
>
<label
><b><label
for=
"username"
>
Blazer Id:
{{ username }}
</label></b></label
><br>
<label
for=
"username"
>
Blazer Id:
</label>
	
<span
id=
"username"
>
{{ username }}
</span
><br>
<label
><b><label
for=
"fullname"
>
Full Name:
{{ fullname }}
</label></b></label
><br>
<label
for=
"fullname"
>
Full Name:
</label>
	
<span
id=
"fullname"
>
{{ fullname }}
</span
><br>
<label
><b><label
for=
"email"
>
Email:
{{ email }}
</label></b></label
><br>
<label
for=
"email"
>
Email:
</label>
	
<span
id=
"email"
>
{{ email }}
</span
><br>
<label
><b><label
for=
"reason"
>
Reason for Requesting Account:
</label></b>
</label><br>
<label
for=
"reason"
>
Reason for Requesting Account:
</label><br>
<textarea
class=
"form-control"
id=
"reason"
name=
"reason"
placeholder=
"Enter Reason for Account Request"
required=
""
></textarea>
<textarea
class=
"form-control"
id=
"reason"
name=
"reason"
placeholder=
"Enter Reason for Account Request"
required=
""
></textarea>
<div
class=
"row-no-gutters"
>
<div
class=
"row-no-gutters"
>
<div
class=
"col-lg-6"
>
<div
class=
"col-lg-6"
>
<input
class=
"btn btn-danger btn-block"
id=
"cancel"
name=
"cancel"
type=
"button"
value=
"Cancel"
onclick=
"window.location.replace('{{
cancel_link
}}');"
>
<input
class=
"btn btn-danger btn-block"
id=
"cancel"
name=
"cancel"
type=
"button"
value=
"Cancel"
onclick=
"window.location.replace('{{
referrer
}}');"
>
</div>
</div>
<div
class=
"col-lg-6"
>
<div
class=
"col-lg-6"
>
<input
class=
"btn btn-primary btn-block"
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"request_account()"
>
<input
class=
"btn btn-primary btn-block"
id=
"submit"
name=
"submit"
type=
"button"
value=
"Submit"
onclick=
"request_account()"
>
...
...
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