Make EditUser redirects more useful

This commit is contained in:
Laura Hausmann 2023-05-19 23:16:38 +02:00
parent f377205532
commit e5e1c344dc
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -90,9 +90,11 @@ public class EditUserModel : PageModel {
user.Balance += amount; user.Balance += amount;
await db.SaveChangesAsync(); await db.SaveChangesAsync();
Response.Redirect($"/EditUser/{user.Id}");
}
else {
Response.Redirect($"/");
} }
Response.Redirect($"/#{user.Nickname}");
} }
public enum CardDisplayType { public enum CardDisplayType {