From b23a85aca2849a3ece2ff33891ff4f0563357c4f Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 3 Jul 2024 06:07:54 +0200 Subject: [PATCH] fix(web): tell that user may need to be approved --- web/src/page/register.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/page/register.rs b/web/src/page/register.rs index 854ce58d..f54ba278 100644 --- a/web/src/page/register.rs +++ b/web/src/page/register.rs @@ -52,6 +52,7 @@ pub fn RegisterPage() -> impl IntoView { set_error.set(Some( view! {
no credentials provided
} )); + return; } spawn_local(async move { @@ -75,6 +76,9 @@ pub fn RegisterPage() -> impl IntoView { reset_ref!(summary_ref); reset_ref!(avatar_url_ref); reset_ref!(banner_url_ref); + set_error.set(Some( + view! {
registration successful! your user may need to be approved by an administrator before you can login
} + )); }, }, }