1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

update warning

This commit is contained in:
Rob Ede 2023-07-09 02:19:15 +01:00
parent 1e0cedade0
commit 8461da57fb
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -8,7 +8,7 @@ pub static SECRET_KEY: Lazy<String> =
const SALT: &[u8] = b"supersecuresalt";
// WARNING THIS IS ONLY FOR DEMO PLEASE DO MORE RESEARCH FOR PRODUCTION USE
// PLEASE NOTE THIS IS ONLY FOR DEMO PLEASE DO MORE RESEARCH FOR PRODUCTION USE
pub fn hash_password(password: &str) -> Result<String, ServiceError> {
let config = Config {
secret: SECRET_KEY.as_bytes(),