Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
895df745
Commit
895df745
authored
Mar 04, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20220304
parent
6ef0603e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
apps/view_user/view.py
+1
-1
No files found.
apps/view_user/view.py
View file @
895df745
...
@@ -225,7 +225,7 @@ def register():
...
@@ -225,7 +225,7 @@ def register():
# 密码应设置为包含大小写字母、数字、特殊符号'!@#$%^&*()_+=-'
# 密码应设置为包含大小写字母、数字、特殊符号'!@#$%^&*()_+=-'
if
not
(
re
.
search
(
r'\d+'
,
password
)
and
re
.
search
(
r'[a-z]+'
,
password
)
and
re
.
search
(
r'[A-Z]+'
,
if
not
(
re
.
search
(
r'\d+'
,
password
)
and
re
.
search
(
r'[a-z]+'
,
password
)
and
re
.
search
(
r'[A-Z]+'
,
password
)
and
re
.
search
(
password
)
and
re
.
search
(
r'[!@#$
%
^&*()_+=-]+'
,
password
)):
r'[
.
!@#$
%
^&*()_+=-]+'
,
password
)):
return
jsonify
(
code
=
RET
.
DATAERR
,
msg
=
"密码应设置为包含大小写字母、数字、特殊符号'!@#$
%
^&*()_+=-'"
)
return
jsonify
(
code
=
RET
.
DATAERR
,
msg
=
"密码应设置为包含大小写字母、数字、特殊符号'!@#$
%
^&*()_+=-'"
)
# 密码不能使用用户名
# 密码不能使用用户名
if
password
==
name
:
if
password
==
name
:
...
...
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