We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089b137 commit bf755d5Copy full SHA for bf755d5
Pages/Account.php
@@ -27,8 +27,13 @@ function getContent()
27
function postContent() {
28
$this->gatekeeper(); // Logged-in users only
29
if (($this->getInput('remove'))) {
30
+ $rm = $this->getInput('remove');
31
$user = \Idno\Core\site()->session()->currentUser();
- $user->twitter = array();
32
+ if($rm === '1') {
33
+ $user->twitter = array(); // wipes all credentials
34
+ } else {
35
+ unset($user->twitter[$rm]); // wipes specific credentials
36
+ }
37
$user->save();
38
\Idno\Core\site()->session()->addMessage(\Idno\Core\Idno::site()->language()->_('Your Twitter settings have been removed from your account.'));
39
}
0 commit comments