i trying implement remember me in laravel auth. if user logout, , visting sign in page how can make username , password field filled in login form?
now, on logout clearing cookie.
\vendor\laravel\framework\src\illuminate\auth\guard.php
public function logout() { $user = $this->user(); // if have event dispatcher instance, can fire off logout event // further processing can done. allows developer // listening anytime user signs out of application manually. $this->clearuserdatafromstorage(); if ( ! is_null($this->user)) { $this->refreshremembertoken($user); } if (isset($this->events)) { $this->events->fire('auth.logout', [$user]); } // once have fired logout event clear users out of memory // no longer available user no longer considered // being signed application , should not available here. $this->user = null; $this->loggedout = true; }
thanks in advance
Comments
Post a Comment