-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logout option full reset #1107
base: main
Are you sure you want to change the base?
Logout option full reset #1107
Conversation
dfsm
commented
Aug 7, 2021
- Log out option will now only delete the cookie and present the login screen
- New option added "Full reset". This performs the actions Log Out did previously
- Removed all traces of the MiniOnePassword package. This is no longer required as iOS supports 1password for login fields
- Updated Login.storyboard to set fields as Username and Password. This allows iOS to present password manager options
- Log out option will now only delete the cookie and present the login screen - New option added "Full reset". This performs the actions Log Out did previously - Removed all traces of the MiniOnePassword package. This is no longer required as iOS supports 1password for login fields - Updated Login.storyboard to set fields as Username and Password. This allows iOS to present password manager options
…reviously Log Out). This commit sorts one that was being caused by applicationWillResignActive and applicationDidBecomeActive and the SmilieKeyboardSetIsAwfulAppActive commands. Changed these to applicationWillEnterForeground and applicationDidEnterBackground, which seems to sort it. Hopefully this change is OK There is still one crash present due to coredata being deleted but still referenced in memory (I think?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me. I think the ideal way to handle this is app-modal "your session has expired, please log in again" screen with a "full reset" option from there, and then the manual "Log out" button can go back to being the full reset, because I assume almost nobody will manually log out. But I like this as a quicker solution!
The iOS password fill-in thing, do you know what iOS version that requires? We might want to keep MiniOnePassword for older versions.
@@ -121,13 +124,13 @@ final class AppDelegate: UIResponder, UIApplicationDelegate { | |||
return true | |||
} | |||
|
|||
func applicationWillResignActive(_ application: UIApplication) { | |||
func applicationDidEnterBackground(_ application: UIApplication) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reasoning here and with DidBecomeActive/WillEnterForeground below? (Not saying it's wrong!)
annotation: options[UIApplication.OpenURLOptionsKey.annotation] as Any | ||
) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this necessary?