php - Accept username that is ecrypted by hash in the database -



php - Accept username that is ecrypted by hash in the database -

when i'm creating user, username , password saves in hash. want username , password when log in, can read system. using laravel

below code user controller

public function postsignin() { if (auth::attempt(array('username'=>input::get('username'), 'password'=>input::get('password')))) { homecoming redirect::to('admin/dashboard')->with('message', 'you logged in!'); } else { homecoming redirect::to('users/login') ->with('message', 'your username/password combination incorrect') ->withinput(); } }

case sensitivity not require hashing. utilize non _ci encoding in database table. ci stands case insensitive.

assuming still want hash username, need hash user input (username), in same manner stored in database, before passing authentication script.

php laravel hash passwords

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -