F
Filamentβ€’6mo ago
Yurikaso

Login remember button and placeholders

How do I add the placeholders to the login panel ? and how do I also make the remember button work when a user logs out ?
No description
3 Replies
Lara Zeus
Lara Zeusβ€’6mo ago
you will need to overwrite the login component as described here https://filamentphp.com/docs/3.x/panels/users#customizing-the-authentication-features and add ->placeholder('John Doe') as for the make the remember button work when a user logs out I didnt get it tbh πŸ™‚
Yurikaso
Yurikasoβ€’6mo ago
thanks you are right I have fixed the placeholder! πŸ˜„ the remember button I don't know if it has the function to remember the email and password by default. I do not notice that it saves it when the user logs out.
DrByte
DrByteβ€’6mo ago
The "Remember Me" checkbox simply uses Laravel's "remember me" feature, which stores a remember_token in the database which matches a cookie value on the user's browser. This lets them restart their session without logging in, on next visit. But if they click logout, it is erased. That's all Laravel stuff. As for remembering prior email addresses and passwords "in the browser", that's entirely a function of the browser, which relies on whether the user has those features turned on in their browser. Filament doesn't need to do anything extra for that to work.