問題描述
重置 Bookstack 憑據 (Reset Bookstack Credentials)
我已經從 https://www.bookstackapp.com/docs/ 成功安裝了 Bookstack admin/installation/ 並且在註銷一個小時並重新登錄後,它不允許我這樣做。重置密碼選項也不起作用。我在 phpMyAdmin 中也使用 MD5 更改了密碼,並確保電子郵件和角色正確。無論我怎麼想,我都無法登錄或重置密碼才能工作。有任何想法嗎?根本找不到對此的支持,他們只有 GitHub https://github.com/BookStackApp/BookStack。瀏覽了 GitHub 文件並獲得了提到的重置密碼。
參考解法
方法 1:
This can be accomplished via the CLI. From the CLI, navigate to your web directory (usually something along the lines of /var/www/bookstack) and execute the following command
php artisan bookstack:create‑admin
The prompts will allow you to fill in the data for the new admin user. Logging in with that user, you should be able to reset the password for your original account.
You will not be able to use the same email (and I do not believe that it does any thorough checking of the email, so a phony one should suffice).
From: https://www.bookstackapp.com/docs/admin/commands/
方法 2:
after connect book stack to ldap, i can't login with out any user exclude of ldap users, and all of them is a normal user,
create a new admin with command is also not work for me.
then i connect to mariadb and change role_user of my user to 1
and login with ldap password, then i am admin now.