-
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/registerinstead of/oauth2/authorize.If you click the view icon on your application, you will see a
Registration URLorRegistration URLsdepending 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
hasLoggedInonce 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 ahasLoggedIncookie but isn't currently logged in, display asign inlink.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
hasLoggedIncookie. 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
hasLoggedIncookie). 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
-
Ok, thanks @dan and @robotdan ! I think a combination of both your responses gets me what I need. Much appreciated!
-
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login