laravel / fortify

Backend controllers and scaffolding for Laravel authentication.

Home Page:https://laravel.com/docs/fortify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password Resets Datetime issue

mrchrisoliver opened this issue · comments

commented
  • Fortify Version: 2.3 (Jetstream)
  • Laravel Version: 8.40
  • PHP Version:7.4.16
  • Database Driver & Version: SQLSRV

Description:

QueryException is thrown when "Email password reset link" is pressed.

SQLSTATE[22007]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value. (SQL: insert into [password_resets] ([email], [token], [created_at]) values (chris@email.co.uk, $2y$10$Vvpgqtx0pbwzxdBZv0vvs.ycFjWnMD8CT1Ampth.f9aShXMyAmZ02, 2021-06-22 14:57:49.081))

I usually add this to my Model, like User::class, but don't have a place for the password resets table.
protected $dateFormat = 'Y-d-m H:i:s';

Is there anyway to override this for Jetstream/Fortify?

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.