Hello,
If I access the URL http://internal/Security/LoginForm/ directly, a "[User Error] Passed invalid authentication method" error is displayed. It seems like this URL should display (or redirect to) the login form instead of an error.
What do you think?
Ben
=========
[User Error] Passed invalid authentication method
GET /Security/LoginForm/
Line 232 in C:\xampp\htdocs\members\sapphire\security\Security.php
Source
223 if(isset($this->requestParams['AuthenticationMethod'])) {
224 $authenticator = trim($_REQUEST['AuthenticationMethod']);
225
226 $authenticators = Authenticator::get_authenticators();
227 if(in_array($authenticator, $authenticators)) {
228 return call_user_func(array($authenticator, 'get_login_form'), $this);
229 }
230 }
231
232 user_error('Passed invalid authentication method', E_USER_ERROR);
233 }
234
235
236 /**
237 * Get the login forms for all available authentication methods
238 *
Trace
* Passed invalid authentication method
Line 232 of Security.php
* Security->LoginForm(SS_HTTPRequest)
Line 196 of Controller.php
* Controller->handleAction(SS_HTTPRequest)
Line 135 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 150 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
* Director::direct(Security/LoginForm/)
Line 122 of main.php