1
0
Fork 0
forked from mirror/pixelfed

Update email settings, add dangerzone middleware to prompt for password before you can change your email address. Fixes #4101

This commit is contained in:
Daniel Supernault 2023-03-18 21:51:28 -06:00
parent 467c9d754e
commit 186ba7f018
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -421,8 +421,8 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
Route::delete('avatar', 'AvatarController@deleteAvatar');
Route::get('password', 'SettingsController@password')->name('settings.password')->middleware('dangerzone');
Route::post('password', 'SettingsController@passwordUpdate')->middleware('dangerzone');
Route::get('email', 'SettingsController@email')->name('settings.email');
Route::post('email', 'SettingsController@emailUpdate');
Route::get('email', 'SettingsController@email')->name('settings.email')->middleware('dangerzone');
Route::post('email', 'SettingsController@emailUpdate')->middleware('dangerzone');
Route::get('notifications', 'SettingsController@notifications')->name('settings.notifications');
Route::get('privacy', 'SettingsController@privacy')->name('settings.privacy');
Route::post('privacy', 'SettingsController@privacyStore');