mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-07-15 00:14:35 +02:00
BUG fix: Device edit form changes passowrd without user modification
This commit is contained in:
parent
2d8320c991
commit
c824584767
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ def update_device(devid, user_name, password, ip, peer_ip, name):
|
|||
if not device:
|
||||
return False
|
||||
try:
|
||||
if not password:
|
||||
password=device['password']
|
||||
query=Devices.update(user_name=user_name, password=password, ip=ip, peer_ip=peer_ip, name=name).where(Devices.id == devid)
|
||||
query.execute()
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue