Framework: Password reminder expired token

Created on 7 Oct 2013  路  9Comments  路  Source: laravel/framework

Is there a way to check if the token is invalid/expired without making the user fill out a form first?

Most helpful comment

Hi i dont have email i only have the token how can i then verify that token is valid and not expired i am using laravel 5.4.

All 9 comments

You could manually query password_reminders table.

I meant is there a way using the Password class or similar? Doesn't appear to be but this would be nice to be able to just verify if a token is valid or expired before making the user fill out personal details etc.

Password::getRepository()->exists(user, token)

I discovered that the getRepository() method is actually set to protected, so the above code doesn't really work.

App::make("auth.reminder.repository")->exists($user, $token);

all of the solution presented requires $user , what if i just want to validate token like
Password::getRepository()->tokenExists(token)

@rajneeshojha have you figured out how this could be achieved?

Hi i dont have email i only have the token how can i then verify that token is valid and not expired i am using laravel 5.4.

In my case i solve the problem changing the type of "created_at" from date to timestamp.
password

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

lzp819739483 picture lzp819739483  路  3Comments

gabriellimo picture gabriellimo  路  3Comments

progmars picture progmars  路  3Comments

Anahkiasen picture Anahkiasen  路  3Comments