mirror of
https://github.com/actix/examples
synced 2025-02-17 07:23:29 +01:00
update warning
This commit is contained in:
parent
1e0cedade0
commit
8461da57fb
@ -8,7 +8,7 @@ pub static SECRET_KEY: Lazy<String> =
|
|||||||
|
|
||||||
const SALT: &[u8] = b"supersecuresalt";
|
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> {
|
pub fn hash_password(password: &str) -> Result<String, ServiceError> {
|
||||||
let config = Config {
|
let config = Config {
|
||||||
secret: SECRET_KEY.as_bytes(),
|
secret: SECRET_KEY.as_bytes(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user