[PR #327] [MERGED] Add user now supports reading password from an env var. #1271

Closed
opened 2026-05-07 01:01:18 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/327
Author: @Kenix3
Created: 6/15/2022
Status: Merged
Merged: 6/20/2022
Merged by: @binwiederhier

Base: mainHead: add_user_supports_envvar


📝 Commits (6)

  • 3dec7ef Add user now supports reading password from an env var.
  • 1265e69 Changes user add to use a NTFY_PASSWORD env var rather than NTFY_USER.
  • 50cd50c Moves password stdin down to the original location.
  • 727c626 Updating order of variables ntfy user add command.
  • 7de7e0d Adds missing colon assignment for username variable in ntfy user add command.
  • f3e5961 Fixes envvar fetch in ntfy user add for password

📊 Changes

1 file changed (+12 additions, -4 deletions)

View changed files

📝 cmd/user.go (+12 -4)

📄 Description

No description provided


🔄 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/binwiederhier/ntfy/pull/327 **Author:** [@Kenix3](https://github.com/Kenix3) **Created:** 6/15/2022 **Status:** ✅ Merged **Merged:** 6/20/2022 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `add_user_supports_envvar` --- ### 📝 Commits (6) - [`3dec7ef`](https://github.com/binwiederhier/ntfy/commit/3dec7efadb418bc065f6aa856e7196cd5a12b65d) Add user now supports reading password from an env var. - [`1265e69`](https://github.com/binwiederhier/ntfy/commit/1265e69eee40818e96a89fe4d5011ffb442cb089) Changes user add to use a NTFY_PASSWORD env var rather than NTFY_USER. - [`50cd50c`](https://github.com/binwiederhier/ntfy/commit/50cd50cfdf1857596cdb9d23ba703695966a0c84) Moves password stdin down to the original location. - [`727c626`](https://github.com/binwiederhier/ntfy/commit/727c6268b91a3deaf20c284a55701b9fedb312e6) Updating order of variables ntfy user add command. - [`7de7e0d`](https://github.com/binwiederhier/ntfy/commit/7de7e0de1246752d421c977a57147ea1f3f9e474) Adds missing colon assignment for username variable in ntfy user add command. - [`f3e5961`](https://github.com/binwiederhier/ntfy/commit/f3e59618921e02ad35e046e2ac86e1561dd85564) Fixes envvar fetch in ntfy user add for password ### 📊 Changes **1 file changed** (+12 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `cmd/user.go` (+12 -4) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:01:18 +02: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/ntfy#1271
No description provided.