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.

Widgets /

Discuss SilverStripe Widgets.

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

create a login as silvertripe


Reply


3 Posts   4091 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, 5513 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