Esempio n. 1
0
 public function fbAuth()
 {
     $client_user = ClientUsers::findByEmail($this->email);
     if ($client_user instanceof ClientUsers) {
         $client_user->auth_key;
     } else {
         $client_user = new ClientUsers();
         $client_user->attributes = $this->attributes;
     }
     $client_user->save();
     $this->auth_key = $client_user->auth_key;
     return true;
 }