Jump to:

23453 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » SS 3.1 login

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: 359 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    SS 3.1 login Link to this post

    I've got a site in SilverStripe 3.1, and trying to put a log in form on the page template.

    Adding '$LoginForm' into the template shows the form, all good. But when you submit the form, you get

    "Action 'LoginForm' isn't allowed on class MemberPage_Controller."

    I have added LoginForm to the allowed actions list

    class MemberPage_Controller extends Page_Controller {

        private $allowed_actions = array(          
          'JoinForm',
          'Welcome',
          'Reminder',
          'LoginForm',
        );

    All the other actions in the list work fine, but LoginForm still isn't allowed.

    Is there a special way of dealing with this particular function in SilverStripe 3.1? it worked just fine in 3.0.5?

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