nodejs-pool icon indicating copy to clipboard operation
nodejs-pool copied to clipboard

Cant login to admin

Open ivanperry opened this issue 7 years ago • 7 comments

I ran the follow command but still cant login to front end.

UPDATE pool.users SET email='your new password here' WHERE username='Administrator';

ivanperry avatar May 27 '18 13:05 ivanperry

http://yourpool.com/admin.html

this is the page where you can login with the admin account

did you check your mysql database if the value was updated?

select * from pool.users;

shigutso avatar May 27 '18 13:05 shigutso

The Admin login page is not working and still throws "Please check your login details" .
The authenticate Api is responding with 401 even though correct userid /password is being entered. I have verified that same entries are present in MYSQL as well

Request

Request URL: http://HOSTNAME/api/authenticate Request Method: POST Status Code: 401 Unauthorized

Request payload

{"username":"Administrator","password":"Password1234"}

MySQL Entries

mysql> select * from pool.users; +----+---------------+------+--------------+-------+------------------+--------------+ | id | username | pass | email | admin | payout_threshold | enable_email | +----+---------------+------+--------------+-------+------------------+--------------+ | 1 | Administrator | NULL | Password1234 | 1 | 0 | 1 | +----+---------------+------+--------------+-------+------------------+--------------+

amitsaxena-ups avatar Jun 04 '18 16:06 amitsaxena-ups

same thing here

topcheer avatar Jun 07 '18 07:06 topcheer

i have the same issue here

011248163264 avatar Sep 02 '18 20:09 011248163264

you need HTTPS because the JSON scripts need a Cert to do mysql tasks

try https://www.YOURIP.com/admin.html

Thomeke1992 avatar Nov 28 '18 18:11 Thomeke1992

Easy to say than to. Sucen CADDY is configured without SSL just for port 80.

Btw, you user "cors" at caddy (https://github.com/Snipa22/nodejs-pool , cors). Shouldn't be this the issue?

xsoft avatar May 18 '19 19:05 xsoft

If you do HTTPS (by putting hostname to caddy) then web will work on HTTPS but requests would be forwarded to HTTP and will not pas thru (login pages would show up, but none login would pass).

To keep all on http would work (by ":80", but its kinda lame).

xsoft avatar May 20 '19 08:05 xsoft