Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallen姚文辉
test_platform
Commits
aec106df
Commit
aec106df
authored
May 14, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
93e25cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
User.py
controller/User.py
+1
-1
No files found.
controller/User.py
View file @
aec106df
...
...
@@ -92,7 +92,7 @@ def adduser():
return
jsonify
({
"code"
:
401
,
"message"
:
"用户名重复,请重试"
}),
401
create_time
=
time
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
,
time
.
localtime
(
time
.
time
()))
db
.
session
.
add
(
User
(
name
=
data
.
get
(
"name"
),
password
=
generate_password_hash
(
data
.
get
(
"password"
)),
role_id
=
int
(
data
.
get
(
"role_id"
)),
organization_id
=
(
int
(
data
.
get
(
"organization_id"
))
or
None
),
create_date
=
create_time
,
create_user
=
(
session
.
get
(
"id"
)
or
0
),
disable
=
(
data
.
get
(
"disable"
)
or
0
),
jira_account
=
data
.
get
(
"jira_account"
),
jira_password
=
data
.
get
(
"jira_password"
),
email_ad
ress
=
(
data
.
get
(
"email_a
dress"
)
or
None
)))
disable
=
(
data
.
get
(
"disable"
)
or
0
),
jira_account
=
data
.
get
(
"jira_account"
),
jira_password
=
data
.
get
(
"jira_password"
),
email_ad
dress
=
(
data
.
get
(
"email_ad
dress"
)
or
None
)))
db
.
session
.
commit
()
db
.
session
.
close
()
return
jsonify
({
"code"
:
200
,
"message"
:
"添加成功"
}),
200
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment