-
Notifications
You must be signed in to change notification settings - Fork 0
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
Describe Remember Me goals? #52
Comments
Noting that this is under the following bullet:
|
Hi Mark, Here's what we're thinking. We'd love your thoughts on these points, as this is new territory for us!
Thanks! Let us know if you have any questions. |
Based on what you've described, I think we'll just assume this. It was a catch-all statement.
I was thinking in the menu. It doesn't need to compete with content on any of the screens, just be very accessible. Thanks! |
Hey there, @mailbackwards! It sounds like the Remember Me checkbox is something that we'd have to add into the Settings API and add to the Settings screen. Is that something that you could put in place on the back end for the API, and then let me know what values it expects so I can implement the front-end piece? Thanks! :) |
Sure, I'll get working on this and let you know when it's pushed through. Thanks. |
I've just pushed up some code that should allow for a Remember Me checkbox in settings. Any "Remember Me" defaults to true, so if no This should be documented in API_ENDPOINTS.md. Let me know if you have any questions about it. Thanks! |
Hey there, Liam! I've been making progress on the Remember Me functionality today as well, working on the localStorage aspect. I had assumed that most of the Remember Me functionality would be done via a localStorage variable that was keyed to the user's email (so for example, LocalStorage variables are assumed to be permanent unless the user deletes them manually -- we don't have any mechanism in place to calculate expiration of the To document, my in-progress logic looks like this: On page load, the site checks for an existing localStorage variable called
This Logging in, the system will check Logging out, the system will remove both localStorage and sessionStorage versions of the auth token and username variables (which should provide a clean slate for the next login). Most of the functions that need an auth token and username will check sessionStorage variables first and then localStorage if there aren't sessionStorage variables defined. The only time we'd need to check the API, I believe, would be if they went into the Settings screen to change it. Then I'd ping the Settings API to make sure the checkbox is reflecting the correct value (just in case somehow the localStorage got deleted or something, and I'd have the checkbox send any changes to the Settings API and change the Let me know if this all sounds good to the team -- thanks! :) |
Hi Sherri-- Yes, I think this works for us! As long as you send a It's no problem on our end that there's no way to calculate expiration. |
Sounds good -- I'll start on the Settings page functionality today then. Thanks! |
Hey there, Liam! Hmm...you had mentioned that "Remember Me" defaults to true, so if no But when I ping my [email protected] user data to find out what it is, it's returning Is there something we can do to assign it to pre-existing users? Thoughts? Thanks! |
Oh yes, I hadn't thought of that. I just went in and set a |
Perfect! I was actually testing at the time, so I saw it come through. :) Thanks! |
…dating, swapping from localStorage to sessionStorage is in place (Github issue #52)
…and side menu when logged in (Github issue #52)
This one's ready for the team to test on http://staging.artx.clearbold.com/ You'll want to clear out your cache first. Mark |
Hi Mark, Thanks for working on this! I tested the Remember Me functionality on an Android (4.2.2) and it worked great. Liam also reports it working well on iOS 8, both Chrome and Safari. A few things were wonky on my iOS7, which may or may not be related to the Remember Me changes:
|
Hi, @desigonz! Did you clear all private data/cache/history in both Safari and Chrome on iOS 7 before testing? I had some issues in Safari when I first tested, and when I switched to Chrome and reset private data, things were working correctly. There's updated JS in this release, so that may be a factor. Mark |
Hi Mark—yes, I did all of the cache and history in both Safari and Chrome before testing, but I can try it again. |
@desigonz Can you confirm the general difficulties in Safari? I'm not able to reproduce that in iOS 7. We have reproduced the Chrome items and are investigating. Thanks! Mark |
Hi Mark—yes, the Safari difficulties are still happening for me after deleting history/cache/cookies several times. I'll see if I can get my hands on another iOS7 and reproduce it. |
…querystring function more specific in case of multiple pages, adding .blur() to deselect star after it's tapped/clicked (#52)
Hey there! A quick update on progress:
I should also note that none of these issues were caused by the recent Remember Me and Forgot Password coding, as far as I can tell. Thanks as always for your keen eyes! |
Hey there, all! Another quick update -- I believe that Liam and I have fixed the 406 errors that were happening in Chrome for iOS now, so hopefully that will take care of the Favorite star issues (and the Interests list not loading, which we noticed while testing) in Chrome iOS! :) |
Hi, @desigonz & @mailbackwards!
Can you describe your goals for Remember Me functionality at a high level?
Some questions that occur to us:
Thanks!
Mark
The text was updated successfully, but these errors were encountered: