Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit dac56a3

Browse files
committed
auth: passwd: write user database when password is changed
Signed-off-by: Florian Scherf <f.scherf@pengutronix.de>
1 parent 180f35d commit dac56a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aiohttp_json_rpc/auth/passwd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def _set_password(self, username, password, salt=None, rounds=100000,
100100
self.user[username]['salt'] = salt
101101
self.user[username]['rounds'] = rounds
102102

103+
self.write()
104+
103105
return True
104106

105107
def _login(self, username, password):

0 commit comments

Comments
 (0)