public static < T extends Model > boolean login ( T user , String password , boolean remember , HttpServletRequest request , HttpServletResponse response ) { boolean matcher = SecurityKit . checkPassword ( user . getStr ( "salt" ) , user . getStr ( "password" ) , password ) ; if ( matcher ) { SecurityKit . setLoginMember ( request , response , user , remember ) ; } return matcher ; }
Check the user s password and execute the login request