Skip to content
Snippets Groups Projects

Use email for authentication

Merged Maxime FRIESS requested to merge feature/fix-use-email-for-login into develop
Compare and
2 files
+ 21
5
Preferences
Compare changes
Files
2
@@ -11,9 +11,10 @@
* @OA\JsonContent(
* required={"username","password"},
* @OA\Property(
* property="username",
* property="email",
* type="string",
* description="Username of the user",
* format="email",
* description="Email of the user",
* ),
* @OA\Property(
* property="password",
@@ -43,7 +44,7 @@ public function authorize()
public function rules()
{
return [
'username' => 'required|string',
'email' => 'required|string|email',
'password' => 'required|string',
];
}