mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-22 19:16:29 +03:00
Add -passwordHash support (#42)
* Update main.go * Update main.go * Set * Set password to db * Main - Password hash, after trimming, cannot be empty * Backend - Assume incoming data is already a hash * Main - CLeaned up * README - Updated command-line argument documentation * Menton this * lower case * SQLITE Driver - Removed comments * Main - `passwordhash` only valiud when non-"" * Main - Try running `Cost([]byte)` on the UTF-8 bytes to verify the hash
This commit is contained in:
committed by
GitHub
parent
59426fabf1
commit
12c153a364
@@ -68,6 +68,7 @@ The following command line switches are supported by the `yggmail` binary:
|
||||
* `-smtp=listenaddr:port` — listen for SMTP on a specific address/port
|
||||
* `-imap=listenaddr:port` — listen for IMAP on a specific address/port;
|
||||
* `-password` — set your IMAP/SMTP password (doesn't matter if Yggmail is running or not, just make sure that Yggmail is pointing at the right database file or that you are in the right working directory).
|
||||
* `-passwordHash` — Like `-password` however this sets what must be directly in the database. This assumes you passed a bcrypt hash
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user