$db = new user_login;
$res = $db->findOne(['email' => $mail]);
$pass = md5($pass);
$db->pass = $pass;
$db->save();
$model = user_login::findOne(['email' => $mail]);
$pass = md5($pass);
$model->pass = $pass;
$model->save();