summaryrefslogtreecommitdiffstats
path: root/DCO
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-03-22 01:45:01 +0000
committerGitHub <noreply@github.com>2021-03-22 02:45:01 +0100
commita587a284349e7c27d1bec39ef0dedb3972ef68c5 (patch)
tree550c9e53d9d857854116e364dba997ba2725fae6 /DCO
parente6377d5eb4fdff12f832c47147430b90fbd90c53 (diff)
downloadgitea-a587a284349e7c27d1bec39ef0dedb3972ef68c5.tar.gz
gitea-a587a284349e7c27d1bec39ef0dedb3972ef68c5.zip
Fix another clusterfuzz identified issue (#15096)
* Fix another clusterfuzz identified issue Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'DCO')
0 files changed, 0 insertions, 0 deletions
e-psalm-baseline Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/settings/ajax/lostpassword.php
blob: b5f47bbceabe88a41464da3ed6283b14f3b85744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

OC_JSON::checkLoggedIn();
OCP\JSON::callCheck();

$l=OC_L10N::get('core');

// Get data
if( isset( $_POST['email'] ) && filter_var( $_POST['email'], FILTER_VALIDATE_EMAIL) ) {
	$email=trim($_POST['email']);
	OC_Preferences::setValue(OC_User::getUser(), 'settings', 'email', $email);
	OC_JSON::success(array("data" => array( "message" => $l->t("Email saved") )));
}else{
	OC_JSON::error(array("data" => array( "message" => $l->t("Invalid email") )));
}