fix(web): tell that user may need to be approved

This commit is contained in:
əlemi 2024-07-03 06:07:54 +02:00
parent 9c47a15ca6
commit b23a85aca2
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -52,6 +52,7 @@ pub fn RegisterPage() -> impl IntoView {
set_error.set(Some(
view! { <blockquote>no credentials provided</blockquote> }
));
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! { <blockquote>registration successful! your user may need to be approved by an administrator before you can login</blockquote> }
));
},
},
}