[PR #1340] [MERGED] user: Allow changing the hashed password directly #1571

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

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/1340
Author: @Tom-Hubrecht
Created: 5/20/2025
Status: Merged
Merged: 5/24/2025
Merged by: @binwiederhier

Base: mainHead: hashed-pwd


📝 Commits (1)

  • 44b7c2f user: Allow changing the hashed password directly

📊 Changes

11 files changed (+144 additions, -107 deletions)

View changed files

📝 cmd/user.go (+24 -13)
📝 server/server_account.go (+2 -2)
📝 server/server_account_test.go (+12 -12)
📝 server/server_admin.go (+1 -1)
📝 server/server_admin_test.go (+8 -8)
📝 server/server_payments_test.go (+9 -9)
📝 server/server_test.go (+16 -16)
📝 server/server_twilio_test.go (+4 -4)
📝 server/server_webpush_test.go (+2 -2)
📝 user/manager.go (+24 -8)
📝 user/manager_test.go (+42 -32)

📄 Description

This adds the detection of NTFY_PASSWORD_HASH when creating a user or changing its passsword so that scripts don't have to manipulate the bare password.


🔄 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/1340 **Author:** [@Tom-Hubrecht](https://github.com/Tom-Hubrecht) **Created:** 5/20/2025 **Status:** ✅ Merged **Merged:** 5/24/2025 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `hashed-pwd` --- ### 📝 Commits (1) - [`44b7c2f`](https://github.com/binwiederhier/ntfy/commit/44b7c2f198f5171bf3f40a36b5efa2ae40402ce3) user: Allow changing the hashed password directly ### 📊 Changes **11 files changed** (+144 additions, -107 deletions) <details> <summary>View changed files</summary> 📝 `cmd/user.go` (+24 -13) 📝 `server/server_account.go` (+2 -2) 📝 `server/server_account_test.go` (+12 -12) 📝 `server/server_admin.go` (+1 -1) 📝 `server/server_admin_test.go` (+8 -8) 📝 `server/server_payments_test.go` (+9 -9) 📝 `server/server_test.go` (+16 -16) 📝 `server/server_twilio_test.go` (+4 -4) 📝 `server/server_webpush_test.go` (+2 -2) 📝 `user/manager.go` (+24 -8) 📝 `user/manager_test.go` (+42 -32) </details> ### 📄 Description This adds the detection of `NTFY_PASSWORD_HASH` when creating a user or changing its passsword so that scripts don't have to manipulate the bare password. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:02:43 +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#1571
No description provided.