Jump to:

22984 Posts in 11765 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Memeber login - problem

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1010 Views
  • FireMe!
    Avatar
    Community Member
    74 Posts

    Memeber login - problem Link to this post

    I am trying to create a site so members can login and download files from private pages, with out access to the Admin CMS, I have 2 user groups one "administrator" and the other "users".

    my problem comes when trying to login as a user, I am using $loginForm on my site home page template. But the users under "users group" are unable to login and only administrators group are able to login, is this because $loginForm redirects to admin area, because if I login as admin and switch user to a user in the users group it works.

    so is it possible to create a login form that does not redirect to admin cms , but just the homepage instead?

    Thanks in advance

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Memeber login - problem Link to this post

    Hi,

    There are some things you can do...

    1) Ask users to goto www.yoursite.com/Security/Login - this will not redirect anywhere upon login... so they would be free to choose where to go after the system lists them as logged in.

    2) put the following in your _config.php - Security::set_default_login_dest('myurlsegment');

    Hope this helps,

    Barry

    1010 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.