@@ 98-102 (lines=5) @@ | ||
95 | ||
96 | $result = $this->user->revokeEmail($userId, $token); |
|
97 | ||
98 | if(!$result){ |
|
99 | return $this->error(404); |
|
100 | }else{ |
|
101 | $this->view->renderWithLayouts(Config::get('VIEWS_PATH') . "layout/default/", Config::get('VIEWS_PATH') . 'user/profile.php', ["emailUpdates" => ["success" => "Your email updates has been revoked successfully."]]); |
|
102 | } |
|
103 | } |
|
104 | ||
105 | /** |
|
@@ 123-126 (lines=4) @@ | ||
120 | return $this->error(404); |
|
121 | }else if(!$result && !empty($errors)){ |
|
122 | $this->view->renderWithLayouts(Config::get('VIEWS_PATH') . "layout/default/", Config::get('VIEWS_PATH') . 'user/profile.php', ["emailUpdates" => ["errors" => $this->user->errors()]]); |
|
123 | }else{ |
|
124 | $this->view->renderWithLayouts(Config::get('VIEWS_PATH') . "layout/default/", Config::get('VIEWS_PATH') . 'user/profile.php', |
|
125 | ["emailUpdates" => ["success" => "Your email updates has been updated successfully."]]); |
|
126 | } |
|
127 | } |
|
128 | ||
129 | /** |