Jump to:

794 Posts in 409 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » create a login as silvertripe

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 3964 Views
  • Rube_25
    Avatar
    Community Member
    36 Posts

    create a login as silvertripe Link to this post

    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
  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: create a login as silvertripe Link to this post

    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/

  • Rube_25
    Avatar
    Community Member
    36 Posts

    Re: create a login as silvertripe Link to this post

    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

    3964 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.