tsk-50: Create Special endpoint for services to obtain a token #53
@@ -111,7 +111,7 @@ pub mod endpoint {
|
|||||||
|
|
||||||
if token_stuff::verify_token(&key, &token_literal) {
|
if token_stuff::verify_token(&key, &token_literal) {
|
||||||
let login_result = icarus_models::login_result::LoginResult {
|
let login_result = icarus_models::login_result::LoginResult {
|
||||||
id: id,
|
id,
|
||||||
username: String::from("service"),
|
username: String::from("service"),
|
||||||
token: token_literal,
|
token: token_literal,
|
||||||
token_type: String::from(icarus_models::token::TOKEN_TYPE),
|
token_type: String::from(icarus_models::token::TOKEN_TYPE),
|
||||||
|
Reference in New Issue
Block a user