Skip to content

Commit a4cdc1e

Browse files
committed
Update user.py
1 parent 0467d39 commit a4cdc1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web/admin/model/user.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ def setUserByRoot(
7373
if name is not None:
7474
data['name'] = name
7575

76-
if name is not None:
76+
if password is not None:
7777
data['password'] = mw.md5(password)
78-
79-
print(data)
8078

8179
Users.query.filter(Users.id==1).update(data)
8280
db.session.commit()

0 commit comments

Comments
 (0)