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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

SS 3.1 login


Go to End


964 Views

Avatar
JonShutt

Community Member, 244 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?