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.

General Questions /

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

SS 3.1 login


Reply


398 Views

Avatar
Futureweb

Community Member, 233 Posts

25 July 2013 at 10:52pm

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?