Disabling email field on signup page

I’m using the Auth0 React SDK to redirect my users to the Auth0 authorization server and login page like so:

loginWithRedirect({
    authorizationParams: {
      screen_hint: 'signup'
      login_hint: 'email@domain.com',
    }
  });

As shown above, I’m passing a login_hint to pre-fill the email field on the login page. However, I’d like to also disable it/make it read-only such that users cannot edit the field contents. Is there a way to do this?

Hi @matthew.kosloski,

Welcome to the Auth0 Community!

Unfortunately, you cannot disable the input for the email field. The user’s identifier is required to log in.

Cheers,
Rueben

1 Like