Troubleshooting and Password Reset
- Ole Ernst
- Christian Schramm
- Former user (Deleted)
- Robin Sachse
Owned by Ole Ernst
Troubleshooting Authentication
If you get "No Permission" Errors or can't access the "Global User Settings" or "User Role" setting
Please log out and log in again. If the error persists, log out and do the command again.
If you forgot your password
Please execute the following commands from the command line inside the NMS Prime directory:
Set the role of an existing user to admin
php artisan auth:nms php artisan auth:admin [ your login name ] php artisan tinker
This will open a new command line (Psy Shell), enter there
Reset the password for an existing user
$user = App\User::where('login_name','[your login name]')->first(); $user->password = Hash::make('[your new password]'); $user->save(); quit # or ctrl+c
close the shell with ctrl + c
If you promoted the wrong user...
First, open a new Laravel Tinker session.
Open a new Laravel Tinker Session
php artisan tinker
Inside the Tinker session you can demote the user as following:
Demote an existing user
$user = App\User::where('login_name','[your login name]')->first(); # to remove all roles from the user $user->roles()->detach() #to remove only the admin role $user->roles()->detach(Role::where('name','admin')->first()->id) quit # or ctrl+c
This removes the admin role or all roles respectively.
Troubleshooting Authorization
If you get an Error 404, while saving abilities...
Please refresh the Page and check which Roles were applied. If the Error keeps coming, please open a Ticket. (Report a Bug)
If you changed the admin role or locked yourself out of the system....
To solve this, execute these two console commands from the command line inside the NMS Prime directory:
Make an existing User Admin
php artisan auth:nms php artisan auth:admin [ your login name ]