-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form Submission error #36
Comments
Hey @Leapfrognz can you clarify what you're trying to do there? Are you wanting to embed the large login form in a different page, or use the mini login form? Either way, you should just be able to do this in your PageController: public function RealMeLoginForm()
{
return new SilverStripe\RealMe\Authenticator\LoginForm($this, __FUNCTION__);
// or return new SilverStripe\RealMe\Authenticator\MiniLoginForm($this, __FUNCTION__);
} You'll need to add the usual Let me know how you get on (note: I don't think we've extensively tested the mini login form on SS4, but I know the main login form should work embedded in a random page). |
Also if the docs have led you astray at all, can you let me know where so I can tidy them up? Thanks! |
Thanks Matt,
This renders the same form so all good. The issue is with the submission - I get the error shown in my first post. |
Also the Form method is Post. The docs say this should be GET?
|
I'll double-check the dos, but there are two different login forms - the 'full' form (suitable for embedding on pages) and the 'mini' form (suitable for page headers/footers). The full form ( I haven't see that error you're seeing though which is pretty odd. There's nowhere specifically in the module where we return a 404 (I don't think at least). What is the URL you're going to when you get the 404? Is it /home/RealMeLoginForm? If so, can you confirm you've added the |
|
@madmatt Im back onto this after being diverted onto other things for the past few months. composer
PageController.php:
|
@madmatt
|
Pull requests are always welcomed |
Sure, But I want @madmatt to confirm this is the expected approach before updating the docs. Saves fuss. |
I kinda think that the better option is to not list this directly, and just rely on using the |
Hi guys, I get the following when clicking the real me login form button
SS4, module version 3.1.1
The documentation is light on how to add the form. I added this to my page Controller:
The configuration seems to be in order. Note this is testing locally. But I should still get sent to mts through right?
The text was updated successfully, but these errors were encountered: