Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Widgets /

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

create a login as silvertripe


Go to End


3 Posts   5420 Views

Avatar
Rube_25

Community Member, 36 Posts

20 May 2009 at 4:48am

Edited: 20/05/2009 4:52am

hi, everybody

I have to create a login as silverstripe for my page.
I can not get the login in the header, and then the logout.

attached images

already did in the admin groups and users so they can sign up and only see a few pages.
(sorry my bad english)

I can not do that is dynamic login-logout

I hope some help

Attached Files
Avatar
Willr

Forum Moderator, 5523 Posts

20 May 2009 at 4:34pm

Sorry what was the question? SS handles all the logging in / out. To login you just point a link to Security/login/ and to log out you have a link to Security/logout/

Avatar
Rube_25

Community Member, 36 Posts

30 May 2009 at 2:06am

Do not worry, we already found a solution:

<% if CurrentMember %>
<font color="#005fb9">$CurrentMember.FirstName</font> -
<a href="/Security/logout">Logout</a>
<% else %>
<a href="/Security/login">Login</a>
<% end_if %>

had no idea of the class: CurrentMember

thanks anyway