From 570b045bf0bf7e2dbb5b5c4068335687b4bffa34 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 27 May 2024 07:16:37 +0200 Subject: [PATCH] fix: hash pwd! --- src/server/admin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/admin.rs b/src/server/admin.rs index ca69feb6..bd7c2ba7 100644 --- a/src/server/admin.rs +++ b/src/server/admin.rs @@ -74,7 +74,7 @@ impl Administrable for super::Context { internal: NotSet, actor: Set(ap_id), login: Set(username), - password: Set(password), + password: Set(sha256::digest(password)), }; crate::model::credential::Entity::insert(credentials_model)