diff --git a/public/css/style.css b/public/css/style.css index e273b67..478e8fe 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -104,23 +104,42 @@ header.header img { text-align: center; } +#signupContain { + background-color: lightgray; + opacity: 0.9; + margin: auto; + margin-top: 1rem; + padding:1rem; + width: 500px; +} + +#firstnameDiv { + width: 49%; + display: inline-block; +} + +#lastnameDiv { + width: 50%; + display: inline-block; +} + +#champsOgligatoire { + float: right; + font-size: 0.8em; +} + +#validSignup { + display: block; + margin: auto; +} + /******************************************************************/ /* LOADING PUBKEY */ /******************************************************************/ -/*.loadingPubkey { -// display: none; - position: fixed; - z-index: 1000; - top: 0; - left: 0; - height: 100%; - width: 100%; - background: rgba( 255, 255, 255, .8 ) - url('http://i.stack.imgur.com/FhHRx.gif') - 50% 50% - no-repeat; -}*/ +#cle_pub { + display: none; +} .loadingPubkey { display: none; diff --git a/src/Account/Action/SignupAction.php b/src/Account/Action/SignupAction.php index 7d633d2..c97cef6 100644 --- a/src/Account/Action/SignupAction.php +++ b/src/Account/Action/SignupAction.php @@ -60,9 +60,9 @@ class SignupAction $validator = (new Validator($params)) ->required('username', 'pubkey', 'email', 'password', 'password_confirm', 'created_at') ->length('username', 3) - ->length('pubkey', 44) - ->length('firstname', 2) - ->length('lastname', 2) + ->length('pubkey', 43) + ->length('firstname', 0) + ->length('lastname', 0) ->email('email') ->confirm('password') ->length('password', 4) diff --git a/src/Account/views/signup.twig b/src/Account/views/signup.twig index 463c88c..bcdc960 100644 --- a/src/Account/views/signup.twig +++ b/src/Account/views/signup.twig @@ -2,19 +2,21 @@ {% block body %} -