admin@admin.com gets created without a password. #49

Closed
opened 2026-02-04 16:24:06 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @cpressland on GitHub (Feb 1, 2016).

Hi,

I've noticed that since the last commit that the default admin@admin.com user doesn't seem to get generated with a password anymore on a fresh install.

MariaDB [bookstack_db]> select * from users;
+----+-------+-----------------+----------+----------------+---------------------+---------------------+-----------------+----------+------------------+
| id | name  | email           | password | remember_token | created_at          | updated_at          | email_confirmed | image_id | external_auth_id |
+----+-------+-----------------+----------+----------------+---------------------+---------------------+-----------------+----------+------------------+
|  1 | Admin | admin@admin.com |          | NULL           | 2016-02-01 15:19:15 | 2016-02-01 15:19:15 |               1 |        0 |                  |
+----+-------+-----------------+----------+----------------+---------------------+---------------------+-----------------+----------+------------------+
1 row in set (0.00 sec)

I had to manually issue the following before I was able to login for the first time.

UPDATE users SET password="$2y$10$6LoV1WoLVs4gylUoqhc9Xe/0.VuP/1YTxq3/8jiMcVW.oYSvIlfrC" where id=1;

Note that I'm testing the deployments with my own cookbook so it could be a bug in that, but running the deployment manually seems to produce the same result.

Originally created by @cpressland on GitHub (Feb 1, 2016). Hi, I've noticed that since the last commit that the default admin@admin.com user doesn't seem to get generated with a password anymore on a fresh install. ``` MariaDB [bookstack_db]> select * from users; +----+-------+-----------------+----------+----------------+---------------------+---------------------+-----------------+----------+------------------+ | id | name | email | password | remember_token | created_at | updated_at | email_confirmed | image_id | external_auth_id | +----+-------+-----------------+----------+----------------+---------------------+---------------------+-----------------+----------+------------------+ | 1 | Admin | admin@admin.com | | NULL | 2016-02-01 15:19:15 | 2016-02-01 15:19:15 | 1 | 0 | | +----+-------+-----------------+----------+----------------+---------------------+---------------------+-----------------+----------+------------------+ 1 row in set (0.00 sec) ``` I had to manually issue the following before I was able to login for the first time. ``` UPDATE users SET password="$2y$10$6LoV1WoLVs4gylUoqhc9Xe/0.VuP/1YTxq3/8jiMcVW.oYSvIlfrC" where id=1; ``` Note that I'm testing the deployments with my own [cookbook](https://github.com/cpressland/bookstack) so it could be a bug in that, but running the deployment manually seems to produce the same result.
Author
Owner

@ssddanbrown commented on GitHub (Feb 1, 2016):

Thanks for raising this issue. Is now fixed as of 4bb7f0613f. Will ensure I test from a clean install before pushing a new release in the future.

Sorry for any hassle this caused anyone.

@ssddanbrown commented on GitHub (Feb 1, 2016): Thanks for raising this issue. Is now fixed as of 4bb7f0613fd3bf672ca8c3042ad08e9b7ace5458. Will ensure I test from a clean install before pushing a new release in the future. Sorry for any hassle this caused anyone.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#49