X
NMS Prime
Stay informed. No spam. Just content. This is our promise.
I agree to the privacy terms. I can unsubscribe at any time.
X
Thank You!
X
NMS PRIME - Konferenz
Anzahl der Teilnehmer:
Datenschutz gelesen und akzeptiert
X
Vielen Dank!
X Sign up to comment and create new topics
Page tree
Skip to end of metadata
Go to start of metadata

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 ]
  • No labels