question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[User Settings] Allow users to add secondary logins

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding!


With the new Settings > Profile page having been added, we need to add some new functionality: Allowing users to add new secondary logins.

Deliverables

  • Logins (Email and Phone Number):
    • Get the loginList from the user onyx key and determine if the user has any secondary logins that we should display
      • If the primary login is an email address, we want to display a phone login if one exists
      • If the primary login is a phone number, we want to display an email address if one exists
    • If no secondary login exists, ensure there is an Add button next to the requisite field.
      • When this button is clicked we should display a text field for the user to enter their password.
      • Once the password has been entered we should call User.addSecondaryLogin
    • If a secondary login exists but is not validated, show a Resend button next to the text field. Clicking on this button should call User.resendValidateCode
    • If a secondary login exists and is validated, ensure the field is locked.
      • If the user has multiple validated secondary logins, choose the first one from the list.
    • The phone number field should have a note beneath it, which changes depending on the status of the phone login
      • Non-Existant: Add your phone number to settle up via Venmo.
      • Unvalidated: The number has not yet been validated. Click the button to resend the validation link via text.
      • Validated: Use your phone number to settle up via Venmo.

Mobile

No Phone Number Add Phone Number Password Prompt Unvalidated Phone Number Validated Phone Number

Web: should follow the same flow as mobile and looks the same except the view is within a right-hand-modal eg. Unvalidated Phone on Web:

Mobile flow with Email as Secondary Login:

No Email Add Email Password Prompt Unvalidated Email Validated Email

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/154988

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
shawnbortoncommented, Mar 26, 2021

I actually quite like what you explored above Michelle! We’ve been using a pattern more and more where we use a row that has + Action Text for adding things, and saving buttons for when the state of something gets changed. For example, in the Wallet flow for adding a payment method (I put this below on the left) we use this pattern and I think it works well.

So here is what that might look like: image

Also sorry for the late feedback on this, but I wonder if we should make the read-only field look more like plain text, like we do in the profile view for instance: image

1reaction
NikkiWinescommented, Mar 25, 2021

@Maftalion, I know we were discussing some weirdness with getting the user.loginList when building this on the iOS sim. I’ve figured out this issue and it looks like we need to be passing 'account, loginList, nameValuePairs' not ['account', 'loginList', 'nameValuePairs'] here.

If you do that you should get all the requisite info in the response! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Let multiple users sign in at the same time - Google Support
You can block managed accounts from becoming secondary accounts, even if multiple user sign-ins are allowed, by setting the Add restrictions on a...
Read more >
Allow log on locally - security policy setting (Windows 10)
When you grant an account the Allow logon locally right, you are allowing that account to log on locally to all domain controllers...
Read more >
Change Users & Groups settings on Mac - Apple Support
Create a new user or group. Click the New Account pop-up menu (you may be asked to enter your password), then choose a...
Read more >
How do I add additional user accounts on Galaxy device?
User : This account allows users to access their own apps and content, and customise the device settings that affect all accounts.
Read more >
Manage User Accounts and Settings in Windows 10
Understand user accounts and permissions; Create and manage user ... Accounts designated as Child accounts have additional safeguards that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found