feat: add notifications_enabled toggle for users (web + Android)
This commit is contained in:
@@ -194,6 +194,12 @@ class AuthController
|
||||
|
||||
$updateData = ['email' => $_POST['email']];
|
||||
|
||||
if (isset($_POST['notifications_enabled'])) {
|
||||
$updateData['notifications_enabled'] = 1;
|
||||
} else {
|
||||
$updateData['notifications_enabled'] = 0;
|
||||
}
|
||||
|
||||
if (!empty($_POST['new_password'])) {
|
||||
$updateData['password'] = $_POST['new_password'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user