Skip to content
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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Logout option full reset #1107

wants to merge 3 commits into from

Conversation

dfsm
Copy link
Contributor

@dfsm 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?)
Copy link
Member

@nolanw nolanw left a 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) {
Copy link
Member

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
)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this necessary?

@dfsm dfsm marked this pull request as draft September 26, 2021 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants