Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change GAE local server's login in user account?

There is an edit page on my GAE app only the admin can log in. It works well on GAE server. But on the local dev machine, when I go to

http://localhost:9080/editpage

it says

Current logged in user [email protected] is not authorized to view this page.

How can I change [email protected] to my admin account?

I use python.

like image 665
Russj Avatar asked Dec 26 '22 21:12

Russj


2 Answers

You can go directly to /_ah/login and change who you're logged in as. (Or to log out, or to change user/admin-status.)

like image 187
Greg Avatar answered Dec 29 '22 00:12

Greg


You have already logged-in as test@example user, clear browser data and try again.

In the login page, check the checkbox "Sign in as Administrator" to login as admin.

like image 34
rajpy Avatar answered Dec 28 '22 22:12

rajpy