I had written a code to delete login users from PUMA. Unfortunately due to a bug in the code, the admin login got deleted. How to set it back?
The login never gets deleted by deleting through PUMA Utilities. Only its password gets reset.
It can be retrieved back by logging in to the console and Under Manage users--> Select this user and change the password.
It worked fine then for me!
Related
Very weird issue.
Im logged into Laravel app with 2 different users in Chrome and Chrome Incognito.
When I submit {any} update form it logs the other user out when I refresh.
The user that I submitted the form with is still logged in.
When simply browsing around both users remain logged in.
Environment
Windows XAMP
session drive = redis (I have tried changing this to see if it helps)
UPDATE:
Same thing happens when logged in from 2 seperate browsers - Chrome / IE
I presume something in the Illuminate\Http\Request class causes this behavior.
UPDATE 2
Keeps both users logged in when I select the "Remember Me" option.
similar issue: https://laracasts.com/discuss/channels/laravel/laravel-not-reading-session-cookie-on-form-post-in-chrome-when-logged-in-with-remember-me
Hints to being XAMP bug - using different dev environment solved it.
I think with it being such a weird issue - and not many people experiencing it must be a issue with my specific environment.
The sessions in PHP use a cookie (created automatically) that is stored by your browser, is very posible that the mode igcognito that you are using delete this cookie whe you refresh the page.
When starting the first Incognito window, it uses a completely brand new and blank internal profile that has no cookies nor session data. Any cookies or session info are set immediately during that session. Further Incognito windows opened all share that same session, so they share the cookies/session data.
I have a solution where I had a user1. I have add this user in the Admin group to give him access to the server. Then I change the name in admin and set the password to admin1234. Then ehn I start the server and it ask for the pass, I enter the new one but it doesn't work. So I remove my user and create a new one, still the same... I remove all the user and have only the default Admin group with no user, but still impossible to run anything. I always get ask for the admin pass when I have no user in the directory.
I have try to do a custom required.js function, I have try with the basic settings... I tried everything but I can't make my project to run.
Anybody have an idea of what should I do to fix this problem?
Try to remove the admin user, kill the server process and then create a new admin user.
I had the same issue a long time ago and this worked for me.
I have a role base Laravel app. I have admin role and trying to block a specific user , then immediately log the user out of app.
so using Auth::logout()
is not the case as it log myself out not the intended user!
Everyone here suggest you to just delete user session, but I think it's a bad advice, because session can have information which you do not want to delete. Deleting a session just to logout a user is like killing a fly with a bazooka.
More elegant solution is to mark user for logout and check if user is marked on every request. If he's marked, just logout him immediately with simple Auth::logout()
You can find code example by clicking the link to my answer to similar question.
Update - The test
Ok, guys, you downvoted me and made me feel like a fool, so I've decided to test things out.
I've switched session driver to a DB.
Then I've made a route with session->put('mes', 'I\'m here!'); and ran it. After that I've ran action with echo session->get('mes');, so I saw the message.
After that I've tried to close browser and open it again. I've logged out with Auth::logout(); and then logged in. I still saw the message. Session was kept.
Now, when I've deleted session manually with #Ben Swinburne method, the message was gone. Whole session was destroyed.
So, I guess it proves my answer is correct.
Also, look at this answer by lukasgeiter.
I'm working on a reasonably fresh install of umbraco (7.1.8). I've only installed three plugins at the moment, so I don't believe they are the issue.
If I login using the id created during the install process, I can login fine. But now I want to start adding other users to allow them to add content, and I can't seem to get the users created so they can get access to the back end.
I've double and triple checked the passwords (even using the reset password and copy/pasting from one browser to the next). I've tried using both the email address and the login, but no joy in either scenario. I've tried to just make this first account an admin - no joy.
I opened the console and found this error on the console:
POST /umbraco/backoffice/UmbracoApi/Authentication/PostLogin 400 Bad Request 114ms
I'm hoping it's something glaringly obvious, but I can't see it for the life of me.
Had a similar issue a while back in version 6 where members created programmatically would not be able to login once they updated their email address. Had to ensure that the login was the same as the email address in order for them to login the next time. It is rather confusing I must admit.
Ensure login field value of user = email address field value of user
Actually it works fine to login, and also when I execute something with sudo. But when I try to change preferences and window with login/password pops up, it says that password is incorrect.
So I actually cannot install anything.
I finally figured out the issue first you have to make another Admin account I did this by following this tutorial: https://www.youtube.com/watch?v=b7awY1KI2s8
DON'T USE THE SAME PASSWORD THAT YOU USED ON YOUR OTHER ACCOUNT I HAD PROBLEMS BECAUSE I DID THAT
If you are experiencing the same issues as me where the password didn't work
follow these steps to change the password
Restart the Mac
During when it's booting up go into recovery mode.
Once in recovery mode open up Terminal.
Enter this and then press enter: resetpassword
Reset password for the admin account that was made.
log into your new admin account and then make your other account an admin user.
Restart computer and then login to your account.
The problem is – input language is not eng, even showing it is. Try delete any other input languages – worked for me.
FWIW - I had a similar issue with DP3 following a restart (I could not login with any account). After shutting down and booting again, I was able to login again.
Had the same problem. Log in with iCloud solved it.