allow to change from schnupperant to scheckbuch

This commit is contained in:
2025-05-03 17:39:03 +02:00
parent 9dfcb4e2c4
commit afc32cc41e
4 changed files with 74 additions and 14 deletions

View File

@ -124,7 +124,7 @@ impl User {
if self.has_role(db, "schnupperant").await {
self.send_welcome_mail_schnupper(db, mail, smtp_pw).await?;
} else if let Some(scheckbuch) = ScheckbuchUser::new(db, self).await {
scheckbuch.notify(db, mail, smtp_pw).await?;
scheckbuch.notify(db, smtp_pw).await?;
} else {
return Err(format!(
"Could not send welcome mail, because user {} is not in Donau Linz or scheckbuch or schnupperant group",