Authentication issue #34832
Replies: 7 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@Sohel1999 bcrypt is shorthand for |
Beta Was this translation helpful? Give feedback.
-
@paras-malhotra i know if (Hash::check('plain-text', $hashedPassword)) {
// The passwords match...
} This example from laravel docs |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@paras-malhotra This my Model App\Models\User {#1427 ▼
#guarded: []
#hidden: array:2 [▶]
#casts: array:1 [▶]
#connection: "mysql"
#table: "users"
#primaryKey: "id"
#keyType: "int"
+incrementing: true
#with: []
#withCount: []
#perPage: 15
+exists: true
+wasRecentlyCreated: false
#attributes: array:16 [▶]
#original: array:16 [▼
"id" => 1
"name" => "Admin"
"email" => "[email protected]"
"mobile" => "01770146178"
"dob" => null
"sex" => "male"
"image" => null
"email_verified_at" => "2020-10-14 16:10:22"
"password" => "$2y$10$.6ls82LrifLyzC2VMr74z.9LxpOZjRd8dB/2iUeY40k0YqOc7f20e"
"joining_date" => null
"duty_station" => null
"circle_id" => null
"office_id" => null
"remember_token" => "6RqfSnqSzY"
"created_at" => "2020-10-14 16:10:22"
"updated_at" => "2020-10-14 16:10:22"
]
#changes: []
#classCastCache: []
#dates: []
#dateFormat: null
#appends: []
#dispatchesEvents: []
#observables: []
#relations: []
#touches: []
+timestamps: true
#visible: []
#fillable: []
#rememberTokenName: "remember_token"
} |
Beta Was this translation helpful? Give feedback.
-
yes this issue fixed
…On Sun, Oct 18, 2020 at 3:38 AM lagbox ***@***.***> wrote:
do you happen to have a mutator for the password attribute on your model?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#34832 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJURFU7C33NE73ETUFO2EVLSLIFFBANCNFSM4SUT55OA>
.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
When I make authentication laravel.attempt & Hash::check() method always returns false.
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions