Is there a way to send the user to the hosted signup or login form when opening?
-
Re: Social providers in Register web page
I would prefer that the form open directly to 'sign up' or 'log in' - is it possible to send a url parameter or something that would show the form in the preferred 'mode'? If the user already knows that they need to sign up, I'd rather show them that first, and vice versa.
-
Are you asking to send the user directly to the register page? If so, yes, this is possible.
The URL is mostly the same, but the base is
/oauth2/register
instead of/oauth2/authorize
.If you click the view icon on your application, you will see a
Registration URL
orRegistration URLs
depending upon how many redirect URLs you have configured. -
Hiya,
I think you are asking: "can I show someone a login link if I know they have an account and otherwise show a registration link"?
If so, I believe this is best done in your application. Drop a cookie
hasLoggedIn
once the user has logged in. Make it persistent and don't remove it on log out. Then, in your application code, if the user has ahasLoggedIn
cookie but isn't currently logged in, display asign in
link.There are three possibilities:
- the browser has never visited your site before (the user could have, but could have removed their cookies or be on a new computer--no way to know that). You know this because of the absence of the
hasLoggedIn
cookie. Show a registration link. - the browser has visited your site before and is logged in. You should show neither reg nor login, but you'll probably have a session or cookie indicator that they have signed in.
- the browser has visited your site before and is not logged in (which you know because of the
hasLoggedIn
cookie). You should show login, with a link to registration (because it could be someone else on the user's computer who wants to sign up).
- the browser has never visited your site before (the user could have, but could have removed their cookies or be on a new computer--no way to know that). You know this because of the absence of the
-