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
|
* @PublicPage
|
||||||
*
|
*
|
||||||
|
* @param string $email
|
||||||
* @return TemplateResponse
|
* @return TemplateResponse
|
||||||
*/
|
*/
|
||||||
public function validateEmail() {
|
public function validateEmail($email) {
|
||||||
$email = $this->request->getParam('email');
|
|
||||||
|
|
||||||
if (!$this->registrationService->checkAllowedDomains($email)) {
|
if (!$this->registrationService->checkAllowedDomains($email)) {
|
||||||
return new TemplateResponse('registration', 'domains', [
|
return new TemplateResponse('registration', 'domains', [
|
||||||
'domains' => $this->registrationService->getAllowedDomains()
|
'domains' => $this->registrationService->getAllowedDomains()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue