()
| 252 | use crate::test; |
| 253 | |
| 254 | pub async fn create_user() -> User { |
| 255 | let mut user = User { |
| 256 | is_admin: true, |
| 257 | is_active: true, |
| 258 | email: "test@example.com".into(), |
| 259 | email_verified: true, |
| 260 | ..Default::default() |
| 261 | }; |
| 262 | user.set_password_hash("password!").unwrap(); |
| 263 | create(user).await.unwrap() |
| 264 | } |
| 265 | |
| 266 | #[test] |
| 267 | fn test_hash_password() { |