Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Flask_User_Reg
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Mitchell Moore
Flask_User_Reg
Merge requests
!19
Feat check account existence
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feat check account existence
feat-check-account-existence
into
master
Overview
0
Commits
5
Pipelines
0
Changes
5
Merged
Mitchell Moore
requested to merge
feat-check-account-existence
into
master
5 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Handle and display account creation error if relevant
👍
0
👎
0
Merge request reports
Viewing commit
4c3d0b11
Prev
Next
Show latest version
1 file
+
2
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4c3d0b11
fix script call
· 4c3d0b11
Mitchell Moore
authored
5 years ago
app/__init__.py
+
2
−
3
Options
@@ -57,11 +57,10 @@ def create_app(config_name):
tempString
=
'
ssh ohpc
"
sudo /opt/ohpc_user_create/user_create
'
+
username
+
'
\'
'
+
fullname
+
'
\'
"'
print
(
tempString
,
file
=
sys
.
stdout
)
tempString_run
=
subprocess
.
c
all
(
tempString
)
tempString_run
=
subprocess
.
c
heck_output
([
tempString
],
shell
=
True
)
if
tempString_run
==
0
:
output
=
subprocess
.
check_output
([
tempString
],
shell
=
True
)
print
(
output
.
split
(
'
\n
'
),
file
=
sys
.
stdout
)
print
(
tempString_run
.
split
(
'
\n
'
),
file
=
sys
.
stdout
)
return
redirect
(
return_url
,
302
)
else
:
Loading