Change default API keys names and descriptions

This commit is contained in:
ManyTheFish 2022-05-31 14:18:34 +02:00
parent 84f52ac175
commit 96152a3d32
1 changed files with 4 additions and 6 deletions

View File

@ -112,8 +112,8 @@ impl Key {
let now = OffsetDateTime::now_utc();
let uid = Uuid::new_v4();
Self {
name: Some("admin".to_string()),
description: Some("Default Admin API Key (Use it for all other operations. Caution! Do not use it on a public frontend)".to_string()),
name: Some("Default Admin API Key".to_string()),
description: Some("Use it for all other than search operations. Caution! Do not expose it on a public frontend".to_string()),
uid,
actions: vec![Action::All],
indexes: vec!["*".to_string()],
@ -127,10 +127,8 @@ impl Key {
let now = OffsetDateTime::now_utc();
let uid = Uuid::new_v4();
Self {
name: Some("search".to_string()),
description: Some(
"Default Search API Key (Use it to search from the frontend)".to_string(),
),
name: Some("Default Search API Key".to_string()),
description: Some("Use it to search from the frontend".to_string()),
uid,
actions: vec![Action::Search],
indexes: vec!["*".to_string()],