diff options
Diffstat (limited to 'crates/rocie-client/src/models/password_hash.rs')
| -rw-r--r-- | crates/rocie-client/src/models/password_hash.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/rocie-client/src/models/password_hash.rs b/crates/rocie-client/src/models/password_hash.rs index b73a944..31413bf 100644 --- a/crates/rocie-client/src/models/password_hash.rs +++ b/crates/rocie-client/src/models/password_hash.rs @@ -21,6 +21,9 @@ pub struct PasswordHash { impl PasswordHash { /// This is stored as an PHC password string. This type corresponds to the string representation of a PHC string as described in the [PHC string format specification][1]. PHC strings have the following format: ```text $<id>[$v=<version>][$<param>=<value>(,<param>=<value>)*][$<salt>[$<hash>]] ``` pub fn new(value: String) -> PasswordHash { - PasswordHash { value } + PasswordHash { + value, + } } } + |
