use manage template for "expired" error

This commit is contained in:
Vincent Breitmoser 2019-05-25 14:15:51 +02:00
parent 739e774a2d
commit c3632b9c32
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
2 changed files with 3 additions and 8 deletions

View File

@ -1,7 +0,0 @@
{{#> layout }}
<center><h2>Delete</h2></center>
<p>
This link is invalid or expired. You can <a href="/manage">click here</a> to request a new one.
</p>
{{/layout}}

View File

@ -101,7 +101,9 @@ pub fn vks_manage_key(
Err(e) => MyResponse::ise(e),
}
} else {
MyResponse::ok("manage/manage_expired", General::default())
MyResponse::not_found(
Some("manage/manage"),
Some("This link is invalid or expired".to_owned()))
}
}