# Register a user using auth0/auth0-angular

**URL:** <https://community.auth0.com/t/register-a-user-using-auth0-auth0-angular/110420>\
**Category:** Get Help\
**Tags:** user-invitation, user-management\
**Created:** [July 2, 2023, 7:17pm UTC](https://community.auth0.com/t/register-a-user-using-auth0-auth0-angular/110420 "2023-07-02T19:17:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![a3h16](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@a3h16](https://community.auth0.com/u/a3h16)\
**Post date:** [July 2, 2023, 7:17pm UTC](https://community.auth0.com/t/register-a-user-using-auth0-auth0-angular/110420/1 "2023-07-02T19:17:16Z")

</div>

In Angular, how can I register a user with their email so that when they attemp to login they are prompted to create a password?

I have a form that takes in new user details. name and email?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 3, 2023, 5:56pm UTC](https://community.auth0.com/t/register-a-user-using-auth0-auth0-angular/110420/3 "2023-07-03T17:56:51Z")

</div>

Hi @a3h16,

Welcome to the Auth0 Community!

Firstly, let me clarify that creating a user requires an **email** and **password** attribute.

In this case, it seems like you are looking to [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup). Could you please confirm?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![a3h16](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@a3h16](https://community.auth0.com/u/a3h16)\
**Post date:** [July 4, 2023, 9:34pm UTC](https://community.auth0.com/t/register-a-user-using-auth0-auth0-angular/110420/4 "2023-07-04T21:34:31Z")

</div>

Hi,

I guess I am then looking to enable the user to signup. I understand using the new universal login option with loginWithRedirect and passing in the option screenHint: “signup”, the user can then enter their details.

However how can this be done with classic universal login?  
The screenHint: “signup” option presents me with the login page whilst in classic universal login mode

p.s.

I’ve also found a solution with the auth0-js package where you can register a new user prompting them to enter a password. How can this be done via auth0-angular package?

import { WebAuth } from ‘auth0-js’

this.auth0.authorize(  
{  
connection: ‘’,  
email: ‘’,  
authorizeCallType: ‘registration’,  
redirectUri: `callback`  
},

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 19, 2023, 12:42am UTC](https://community.auth0.com/t/register-a-user-using-auth0-auth0-angular/110420/5 "2023-07-19T00:42:42Z")

</div>

Hi @a3h16,

Thanks for the reply.

That’s correct. Only the New Universal Login experience allows you to pass the [`screen_hint=signup`](https://auth0.com/docs/authenticate/login/auth0-universal-login/new-experience#signup) parameter when redirecting to the `/authorize` endpoint. Unfortunately, this cannot be done with the Classic Universal Login experience.

In this situation, I recommend following the steps outlined in our [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup) documentation.

Essentially, you will first need to register a user using the Management API’s [Create a user endpoint](https://auth0.com/docs/api/management/v2#!/Users/post_users) with a dummy password. Then, repurpose a Change Password email template as an invitation email and send it to the user by calling the Authentication API’s [Change Password endpoint](https://auth0.com/docs/api/authentication#change-password).

When the user follows the email link, they can set their new password and have access to their account.

I hope the explanation was clear!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 2, 2023, 12:43am UTC](https://community.auth0.com/t/register-a-user-using-auth0-auth0-angular/110420/6 "2023-08-02T00:43:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
