Chron
166
5
Laravel

These credentials do not match our records.

Posted 2 months ago by Chron

I did a separate Auth for Admin User and I didn't create @login method 'cause it didn't had any errors earlier.

Here's my @register method inside \AdminAuth\RegisterController.php

protected function register(Request $request)
    {
        Account::create([
            'email'=>$request['email'],
            'password' => bcrypt($request['password']), //tried this also with Hash::make($request['password']);
            'account_type'=>$request['account_type']])
        ->admin()->create([
            'firstname'=>$request['firstname'],
            'middlename'=>$request['middlename'],
            'lastname'=>$request['lastname'],
            'suffix_name'=>$request['suffix_name'],
            'date_of_birth'=>$request['date_of_birth'],
            'address'=>$request['address'],
            'contact_number'=>$request['contact_number'],
        ]);
        return redirect()->route('admin.login');
    }

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.