mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Change default API keys names and descriptions
This commit is contained in:
parent
84f52ac175
commit
96152a3d32
@ -112,8 +112,8 @@ impl Key {
|
|||||||
let now = OffsetDateTime::now_utc();
|
let now = OffsetDateTime::now_utc();
|
||||||
let uid = Uuid::new_v4();
|
let uid = Uuid::new_v4();
|
||||||
Self {
|
Self {
|
||||||
name: Some("admin".to_string()),
|
name: Some("Default Admin API Key".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()),
|
description: Some("Use it for all other than search operations. Caution! Do not expose it on a public frontend".to_string()),
|
||||||
uid,
|
uid,
|
||||||
actions: vec![Action::All],
|
actions: vec![Action::All],
|
||||||
indexes: vec!["*".to_string()],
|
indexes: vec!["*".to_string()],
|
||||||
@ -127,10 +127,8 @@ impl Key {
|
|||||||
let now = OffsetDateTime::now_utc();
|
let now = OffsetDateTime::now_utc();
|
||||||
let uid = Uuid::new_v4();
|
let uid = Uuid::new_v4();
|
||||||
Self {
|
Self {
|
||||||
name: Some("search".to_string()),
|
name: Some("Default Search API Key".to_string()),
|
||||||
description: Some(
|
description: Some("Use it to search from the frontend".to_string()),
|
||||||
"Default Search API Key (Use it to search from the frontend)".to_string(),
|
|
||||||
),
|
|
||||||
uid,
|
uid,
|
||||||
actions: vec![Action::Search],
|
actions: vec![Action::Search],
|
||||||
indexes: vec!["*".to_string()],
|
indexes: vec!["*".to_string()],
|
||||||
|
Loading…
Reference in New Issue
Block a user