Delete a user's avatar
public static deleteAvatar ( integer $userId ) : boolean | ||
$userId | integer | |
return | boolean | success |
/** * Delete the current user's avatar * Auth::checkAuthentication() makes sure that only logged in users can use this action and see this page */ public function deleteAvatar_action() { Auth::checkAuthentication(); AvatarModel::deleteAvatar(Session::get("user_id")); Redirect::to('login/editAvatar'); }
/** * Delete the current user's avatar */ public function deleteAvatar_action() { AvatarModel::deleteAvatar(Session::get("user_id")); Redirect::to('user/editAvatar'); }