mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #898] Generated secret key causes unicode_escape error #788
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#788
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qskousen on GitHub (Jul 18, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/898
With commit https://github.com/tonioo/modoboa/issues/769 you started generating a default secret key, which is great. However, when trying to load this key from the database, it can cause an error if they key has a \ in it. For instance, my key has a \ on the end and trying to start uwsgi results in this error being thrown:
How can I safely regenerate this key without invalidating the current password, or regenerate the key and the admin password? This is a fresh install (obviously, since I can't load the site) on Ubuntu 16.04, installed using the easy install script.
You may want to test the secret key before inserting it in the database.
@tonioo commented on GitHub (Jul 19, 2016):
I think the best would be to limit the character set used to generate this key. FYI, this key is only used to encrypt passwords into user sessions so you can change it, you'll just have to disconnect/connect once again.