ezidam, openid: refactor check app in method, verifying and send POST as well
This commit is contained in:
parent
8ae0c59a25
commit
eb93cbd7ec
7 changed files with 76 additions and 22 deletions
|
|
@ -42,11 +42,11 @@ impl App {
|
|||
}
|
||||
|
||||
/// App needs to be not archived
|
||||
pub async fn get_one(
|
||||
pub(crate) async fn get_one(
|
||||
conn: impl SqliteExecutor<'_>,
|
||||
id: &str,
|
||||
redirect: &str,
|
||||
) -> Result<Option<Self>, Error> {
|
||||
) -> Result<Option<Self>, database::Error> {
|
||||
Ok(DatabaseApps::get_one(conn, id, redirect)
|
||||
.await?
|
||||
.map(Self::from))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue