aboutsummaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2025-08-02 07:38:26 +0500
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2025-08-02 07:38:26 +0500
commit69516fe82952b6f262809812671e73588f8c8bdd (patch)
treeb368b7f8e495877585379085f15922a07bf3a466 /auth
parentf45120f3add49ee2a80f71d256fcef386538bbeb (diff)
auth/*: Fix Gelbooru and Moebooru authorization
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'auth')
-rw-r--r--auth/config/gelbooru.zsh1
-rw-r--r--auth/config/moebooru.zsh1
-rw-r--r--auth/gelbooru.zsh4
-rw-r--r--auth/moebooru.zsh4
4 files changed, 3 insertions, 7 deletions
diff --git a/auth/config/gelbooru.zsh b/auth/config/gelbooru.zsh
index 9638211..21f782b 100644
--- a/auth/config/gelbooru.zsh
+++ b/auth/config/gelbooru.zsh
@@ -3,6 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
ib_auth=0
+ib_raw=0
ib_login_file="user_id"
ib_key_file="api_key"
ib_login_word="user ID"
diff --git a/auth/config/moebooru.zsh b/auth/config/moebooru.zsh
index b1e70e9..d84d153 100644
--- a/auth/config/moebooru.zsh
+++ b/auth/config/moebooru.zsh
@@ -11,6 +11,7 @@ case "${ib_board}" in
;;
esac
+ib_raw=0
ib_login_file="username"
ib_key_file="api_key"
ib_login_word="username"
diff --git a/auth/gelbooru.zsh b/auth/gelbooru.zsh
index 8adb436..ab0b83f 100644
--- a/auth/gelbooru.zsh
+++ b/auth/gelbooru.zsh
@@ -2,6 +2,4 @@
# Copyright (C) 2024-2025 Danil Lisin
# SPDX-License-Identifier: Apache-2.0
-printf '%s="%s"\n%s="%s"\n' \
- "ib_dfield5" "user_id=${ib_login}" \
- "ib_dfield6" "api_key=${ib_key}" > "${legacy_file}"
+output_text="Authorization cannot be verified, make sure you provided the correct credentials"
diff --git a/auth/moebooru.zsh b/auth/moebooru.zsh
index c67fddc..cb19665 100644
--- a/auth/moebooru.zsh
+++ b/auth/moebooru.zsh
@@ -38,7 +38,3 @@ then
return 0
fi
-
-printf '%s="%s"\n%s="%s"\n' \
- "ib_dfield5" "username=${ib_login}" \
- "ib_dfield6" "api_key=${ib_key}" > "${legacy_file}"