mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-28 21:10:36 +00:00
Don't show the "Registrations closed" message if there is an error when creating a new user
This commit is contained in:
parent
ae8f8a1411
commit
2822f8efe9
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ fn create(conn: DbConn, data: LenientForm<NewUserForm>) -> Result<Redirect, Temp
|
|||
Redirect::to(uri!(super::session::new))
|
||||
})
|
||||
.map_err(|e| Template::render("users/new", json!({
|
||||
"enabled": Instance::get_local(&*conn).map(|i| i.open_registrations).unwrap_or(true),
|
||||
"errors": e.inner(),
|
||||
"form": form
|
||||
})))
|
||||
|
|
Loading…
Reference in a new issue