mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
WiFi manager bugfix: delete the cached psk when changing the password
Previously, the cached psk, which is derived from the password and passed to wpa_supplicant, was not updated when changing the password.
This commit is contained in:
committed by
Qingping Hou
parent
e0c2232237
commit
3e656d71e0
@@ -255,6 +255,7 @@ function NetworkItem:saveAndConnectToNetwork(password_input)
|
||||
else
|
||||
if new_passwd ~= self.info.password then
|
||||
self.info.password = new_passwd
|
||||
self.info.psk = nil
|
||||
NetworkMgr:saveNetwork(self.info)
|
||||
end
|
||||
self:connect()
|
||||
|
||||
Reference in New Issue
Block a user