mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
dont reset password on connection errors
This commit is contained in:
@@ -18,10 +18,12 @@ local function clearAccountFields()
|
||||
Settings.remove('password')
|
||||
end
|
||||
|
||||
local function onError(protocol, error)
|
||||
local function onError(protocol, message, connectionError)
|
||||
loadBox:destroy()
|
||||
clearAccountFields()
|
||||
local errorBox = displayErrorBox('Login Error', error)
|
||||
if not connectionError then
|
||||
clearAccountFields()
|
||||
end
|
||||
local errorBox = displayErrorBox('Login Error', message)
|
||||
errorBox.onOk = EnterGame.show
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user