mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
enable registration
This commit is contained in:
@@ -23,12 +23,10 @@ class CreateNewUser implements CreatesNewUsers
|
||||
*/
|
||||
public function create(array $input)
|
||||
{
|
||||
abort('404', 'WIP');
|
||||
|
||||
Validator::make($input, [
|
||||
'name' => ['required', 'string', 'max:255'],
|
||||
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
|
||||
'password' => $this->passwordRules(),
|
||||
'password' => app()->environment('local') ? 'required' : $this->passwordRules(),
|
||||
'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['accepted', 'required'] : '',
|
||||
])
|
||||
->validate();
|
||||
|
||||
@@ -8,7 +8,6 @@ trait PasswordValidationRules
|
||||
{
|
||||
/**
|
||||
* Get the validation rules used to validate passwords.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function passwordRules()
|
||||
|
||||
Reference in New Issue
Block a user