Changed Default Username

mcs3ss2

Active Member
Sep 8, 2020
304
37
28
AU
Hi Team,
So I changed default Username from fspbx@fspbx.com to admin@pbx.mydomain.com
and now, I cannot login.

While I changed the username, I also updated the env file to the following

FROM SESSION_DOMAIN=.pbx.mydomain.com.au TO SESSION_DOMAIN=.mydomain.com.au

How do I rectify this?

Here is the env config

#APP_DEBUG=true
APP_URL=https://pbx.mydomaincom.au
SESSION_DOMAIN=.mydomain.com.au
SANCTUM_STATEFUL_DOMAINS=pbx.mydomain.com.au

Thanks
 
I am not getting any error
it just stays on the login screen and page refreshes
and yes I did run this php artisan config:cache and even rebooted the server
 
something to do with the session variable not matching. You are on https://pbx.mydomaincom.au and not anything else, right? Once you set that in your .env file, that's the only URL you need to use. Make sure there are no spelling mistakes. Yesterday, a client missed one letter in their domain name and also couldn't log in.
 
I meant, now that you have changed the .env file, are you accessing the PBX by going to https://pbx.mydomain.com.au? After the initial installation, you accessed it using the external IP. However, once you update the .env file, you must use your URL instead.
Your screenshot looks fine to me.
 
Accesing with vial domain https://pbx.mydomain.com.au
and even before I had same env file as picture shared above and I was able to login with default username and password
the modifued env file had always been there even before my first login. I modified before first login