- aded npm packages @types/qrcode, qrcode and node-f2a
Some checks failed
CI Pipeline / japa-tests (push) Failing after 53s

- corrected UsersController.ts and RoleController.ts with correct routes for settings
- added migration script and ui and Controller for 2 Factor Authentication
- npm updates
This commit is contained in:
Kaimbacher 2023-12-29 15:54:49 +01:00
parent 87e9314b00
commit c70fa4a0d8
16 changed files with 1098 additions and 417 deletions

View file

@ -144,17 +144,28 @@ Route.group(() => {
// .middleware(['auth', 'can:dataset-list,dataset-publish']);
.middleware(['auth', 'is:administrator,moderator']);
Route.get('/settings/user/security', 'UsersController.accountInfo')
Route.get('/settings/user/security', 'UserController.accountInfo')
.as('settings.user')
.namespace('App/Controllers/Http/Admin')
.namespace('App/Controllers/Http/Auth')
.middleware(['auth']);
Route.post('/settings/user/store', 'UsersController.accountInfoStore')
.as('account.info.store')
.as('account.password.store')
.namespace('App/Controllers/Http/Admin')
.middleware(['auth']);
// Route::post('change-password', 'UserController@changePasswordStore')->name('admin.account.password.store');
Route.post('/settings/user/enable2fa', 'UserController.enableTwoFactorAuthentication')
.as('account.password.enable2fa')
.namespace('App/Controllers/Http/Auth')
.middleware(['auth']);
Route.post('/settings/user/disable2fa', 'UserController.disableTwoFactorAuthentication')
.as('account.password.disable2fa')
.namespace('App/Controllers/Http/Auth')
.middleware(['auth']);
// submitter:
Route.group(() => {
// Route.get('/user', 'UsersController.index').as('user.index');