Exemplo n.º 1
0
 public function ifPasswordExpire($id)
 {
     $model = new UserPassword();
     $userPasswordRow = $model->fetchRow('id_user = '******'config');
     $expiretime = $config['password']['expiretime'];
     if (isset($userPasswordRow) && strtotime($userPasswordRow['created_at']) + $expiretime * 24 * 60 * 60 > strtotime(date("c"))) {
         return false;
     }
     return true;
 }