[PR #668] [MERGED] Handle invalid Client ID/Secret #962

Closed
opened 2026-02-28 14:53:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/668
Author: @aokellermann
Created: 11/27/2020
Status: Merged
Merged: 1/27/2021
Merged by: @Rigellute

Base: masterHead: InvalidClientInput


📝 Commits (5)

📊 Changes

1 file changed (+47 additions, -11 deletions)

View changed files

📝 src/config.rs (+47 -11)

📄 Description

Changes

  • Asks user for Client ID/Secret until a valid input is entered (32 hex digits)

This makes it such that the config file is not written unless valid inputs are entered, so the user will not have to manually edit or delete the config file.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/668 **Author:** [@aokellermann](https://github.com/aokellermann) **Created:** 11/27/2020 **Status:** ✅ Merged **Merged:** 1/27/2021 **Merged by:** [@Rigellute](https://github.com/Rigellute) **Base:** `master` ← **Head:** `InvalidClientInput` --- ### 📝 Commits (5) - [`33caf6e`](https://github.com/Rigellute/spotify-tui/commit/33caf6e0f5ab1837ef0506fc42304dd617b0b0df) Implemented client id/secret validation - [`c88ee9d`](https://github.com/Rigellute/spotify-tui/commit/c88ee9dcee7f52c042907e4e36373390cd5dc08d) Abstract out common function - [`63f5b29`](https://github.com/Rigellute/spotify-tui/commit/63f5b297a7545f985b6ad9563dc4a1df14cd17bf) Fix - [`aeedfcd`](https://github.com/Rigellute/spotify-tui/commit/aeedfcd6562c8f32a5f93d2f270b6328b9564b86) Implemented error - [`041bbaa`](https://github.com/Rigellute/spotify-tui/commit/041bbaa47bc9baf8fc88a59c6992e8b58e718429) Address clippy ### 📊 Changes **1 file changed** (+47 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/config.rs` (+47 -11) </details> ### 📄 Description ### Changes * Asks user for Client ID/Secret until a valid input is entered (32 hex digits) This makes it such that the config file is not written unless valid inputs are entered, so the user will not have to manually edit or delete the config file. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:53:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#962
No description provided.