fix: allow basic auth on token generation
This commit is contained in:
parent
c03a1499c8
commit
07979bf90e
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ use crate::nnid::oauth::generate_token::token_type::AUTH_TOKEN;
|
|||
use crate::Pool;
|
||||
|
||||
#[get("/api/v2/oauth2/generate_token")]
|
||||
pub async fn generate_token(pool: &State<Pool>, auth: Auth<true>) -> String{
|
||||
pub async fn generate_token(pool: &State<Pool>, auth: Auth<false>) -> String{
|
||||
let pool = pool.inner();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue