mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update email settings, add dangerzone middleware to prompt for password before you can change your email address. Fixes #4101
This commit is contained in:
parent
467c9d754e
commit
186ba7f018
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue