From c691372c6a7cbc3082c83f62aefb625002f84af1 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 10 May 2022 01:12:32 -0400 Subject: [PATCH] Don't delete saved creds if a login is blocked & forced login is off --- matrix_appservice_kakaotalk/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix_appservice_kakaotalk/user.py b/matrix_appservice_kakaotalk/user.py index 8e11c35..dbe9b8a 100644 --- a/matrix_appservice_kakaotalk/user.py +++ b/matrix_appservice_kakaotalk/user.py @@ -317,6 +317,8 @@ class User(DBUser, BaseUser): oauth_credential = await Client.login(uuid=uuid, form=form, forced=True) except OAuthException as e: latest_exc = e + else: + return False if oauth_credential: self.oauth_credential = oauth_credential await self.save()