|
|
|
@ -60,7 +60,7 @@ trait HomeSettings
|
|
|
|
$enforceEmailVerification = config_cache('pixelfed.enforce_email_verification');
|
|
|
|
$enforceEmailVerification = config_cache('pixelfed.enforce_email_verification');
|
|
|
|
|
|
|
|
|
|
|
|
// Only allow email to be updated if not yet verified
|
|
|
|
// Only allow email to be updated if not yet verified
|
|
|
|
if (! $enforceEmailVerification || ! $changes && $user->email_verified_at) {
|
|
|
|
if (! $enforceEmailVerification || $user->email_verified_at) {
|
|
|
|
if ($profile->name != $name) {
|
|
|
|
if ($profile->name != $name) {
|
|
|
|
$changes = true;
|
|
|
|
$changes = true;
|
|
|
|
$user->name = $name;
|
|
|
|
$user->name = $name;
|
|
|
|
@ -92,6 +92,8 @@ trait HomeSettings
|
|
|
|
PronounService::put($profile->id, $pronouns);
|
|
|
|
PronounService::put($profile->id, $pronouns);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return redirect('/settings/home')->with('status', 'Verify your email address before you can update your profile!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($changes === true) {
|
|
|
|
if ($changes === true) {
|
|
|
|
|