forked from LibreMV/GridFlow
Fix issue where null name user is logged out on relaunching app
This commit is contained in:
@@ -196,7 +196,7 @@ class SecureStorage(context: Context) {
|
|||||||
fun getUserId(): Int = getActiveAccount()?.userId ?: -1
|
fun getUserId(): Int = getActiveAccount()?.userId ?: -1
|
||||||
|
|
||||||
fun isLoggedIn(): Boolean {
|
fun isLoggedIn(): Boolean {
|
||||||
return getActiveAccount()?.cookie != null && getActiveAccount()?.name?.isNotEmpty() == true
|
return getActiveAccount()?.cookie != null
|
||||||
}
|
}
|
||||||
|
|
||||||
fun clearCredentials() {
|
fun clearCredentials() {
|
||||||
|
Reference in New Issue
Block a user