Update# registercontroller so that request param is passed to method,
easier for testing
This commit is contained in:
parent
70c6f859b5
commit
6dfe732882
|
|
@ -69,11 +69,10 @@ class RegisterController extends Controller {
|
|||
/**
|
||||
* @PublicPage
|
||||
*
|
||||
* @param string $email
|
||||
* @return TemplateResponse
|
||||
*/
|
||||
public function validateEmail() {
|
||||
$email = $this->request->getParam('email');
|
||||
|
||||
public function validateEmail($email) {
|
||||
if (!$this->registrationService->checkAllowedDomains($email)) {
|
||||
return new TemplateResponse('registration', 'domains', [
|
||||
'domains' => $this->registrationService->getAllowedDomains()
|
||||
|
|
|
|||
Loading…
Reference in New Issue