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.


Discuss SilverStripe Widgets.

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

create a login as silvertripe


3 Posts   3976 Views


20 May 2009 at 4:48am (Last edited: 20 May 2009 4:52am), Community Member, 36 Posts

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

20 May 2009 at 4:34pm Forum Moderator, 5511 Posts

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/


30 May 2009 at 2:06am Community Member, 36 Posts

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