mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
@@ -504,7 +504,12 @@ class UsersController extends Controller {
|
||||
);
|
||||
}
|
||||
|
||||
$this->config->setUserValue($id, 'settings', 'email', $mailAddress);
|
||||
// delete user value if email address is empty
|
||||
if($mailAddress === '') {
|
||||
$this->config->deleteUserValue($id, 'settings', 'email');
|
||||
} else {
|
||||
$this->config->setUserValue($id, 'settings', 'email', $mailAddress);
|
||||
}
|
||||
|
||||
return new DataResponse(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user