fix: crashed after local pairing (#14931)
This commit is contained in:
parent
3692ad38dd
commit
01523f3a1d
|
@ -173,18 +173,21 @@
|
||||||
:keychain/save-auth-method
|
:keychain/save-auth-method
|
||||||
(fn [[key-uid method]]
|
(fn [[key-uid method]]
|
||||||
(log/debug "[keychain] :keychain/save-auth-method"
|
(log/debug "[keychain] :keychain/save-auth-method"
|
||||||
|
"key-uid"
|
||||||
|
key-uid
|
||||||
"method"
|
"method"
|
||||||
method)
|
method)
|
||||||
(save-credentials
|
(when-not (empty? key-uid) ; key-uid may be nil after restore from local pairing
|
||||||
(str key-uid "-auth")
|
(save-credentials
|
||||||
key-uid
|
(str key-uid "-auth")
|
||||||
method
|
key-uid
|
||||||
#(when-not %
|
method
|
||||||
(log/error
|
#(when-not %
|
||||||
(str "Error while saving auth method."
|
(log/error
|
||||||
" "
|
(str "Error while saving auth method."
|
||||||
"The app will continue to work normally, "
|
" "
|
||||||
"but you will have to login again next time you launch it."))))))
|
"The app will continue to work normally, "
|
||||||
|
"but you will have to login again next time you launch it.")))))))
|
||||||
|
|
||||||
(re-frame/reg-fx
|
(re-frame/reg-fx
|
||||||
:keychain/save-keycard-keys
|
:keychain/save-keycard-keys
|
||||||
|
|
Loading…
Reference in New Issue