You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users who have authenticated via Google or FB only still see the 'Password Update' fields on the user profile screen. This should be hidden from them. If they try and fill it out, they'll get "Create Account - Error - user does not have a password"
The text was updated successfully, but these errors were encountered:
robbiew
changed the title
Seeing Password Update screen for Google/FB auth users
Password Update screen should be hidden for Google/FB auth users
Jan 4, 2020
My solution:
in Settings.tsx import {getProviders} from '../util/helpers';
Then, in function EditProfile() const providers = getProviders(user); const providerPassword = providers.includes('password');
Then, conditionally render in return: {providerPassword ? passwordChange : noPassword}
(cut-n-paste Password Update into const passwordChange...)
Users who have authenticated via Google or FB only still see the 'Password Update' fields on the user profile screen. This should be hidden from them. If they try and fill it out, they'll get "Create Account - Error - user does not have a password"
The text was updated successfully, but these errors were encountered: