Statping: Login and install doesn't work at all

Created on 23 Jun 2020  路  5Comments  路  Source: statping/statping

Describe the bug

Whole work with logins and the install phase is written with 鉂わ笍(as you write) but without 馃.

  1. In fresh install I enter as login admin or revertron, but in either cases the user written to DB is admin, and I can't sign in with either of them.
  2. The e-mail is written to DB as [email protected], no matter what I enter on install screen.

To Reproduce

Just try to install new 0.90.55 version of statping and try to actually "install" it from installation screen.

Expected Behavior

I must be able to install statping properly, with any login.
AND the login must work after installation.

Screenshots

MC shows this in preview of sqlite DB:

INSERT INTO users VALUES(1,'admin','$2a$14$15TFatPfqdXUC***kyURrevwfh.UxcXZL7q','[email protected]','7f81a44f613f924e***d14843b653257d49','d95a02196e0958f604c4***f185f0d03ad64fe7',1,'2020-06-23 13:31:31.66137741+00:00','2020-06-23 13:31:31.66137741+00
:00');

But I've entered different login on install and definitely another e-mail.

Slack GitHub release Build Status

bug

Most helpful comment

I've confirmed this issue has been fixed in version 0.90.56. Latest Release. And @Revertron, no need for shit head comments, it is open source you know.

All 5 comments

I also ran into this issue. From the logs I noticed this:

INFO[0045] Default Admininstrator user does not exist, creating now! (admin/admin) 
WARN[0046] User #1 (admin) has been created              type=user

even though I had specified another username for admin. Indeed, logging in as user admin with password admin works and then you can change the password from the web interface and add more users there.

Can also confirm that this is the case, although I still can't login with admin admin it just spins and then stops, doesn't tell me I have a wrong password though

I鈥檓 looking into this now.

I've fixed the issue and it will be released on next master release. (probably later today). https://github.com/statping/statping/commit/507c42f07ef61becccc5c7a44a27fe9b80782a85

I've confirmed this issue has been fixed in version 0.90.56. Latest Release. And @Revertron, no need for shit head comments, it is open source you know.

Was this page helpful?
0 / 5 - 0 ratings