$people = $this->flickr->people_findByEmail($account);
if (!empty($people)) {
$this->flickr_account = $account;
+ set_user_preference('flickr_mail_'.$this->id, $account);
} else {
throw new repository_exception('invalidemail', 'repository_flickr_public');
}
}
+
+ $user_mail = get_user_preferences('flickr_mail_'.$this->id, '');
+ if (empty($this->flickr_account) && !empty($user_mail)) {
+ $this->flickr_account = $user_mail;
+ }
}
/**
}
}
+ /**
+ *
+ * @return <type>
+ */
+ public function logout() {
+ set_user_preference('flickr_mail_'.$this->id, '');
+ return $this->print_login();
+ }
+
/**
*
* @param <type> $search_text