[PR #5391] [MERGED] Don't force a password change for the admin user when creating an account via cli #17778

Closed
opened 2025-11-02 15:43:03 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5391
Author: @adelowo
Created: 11/23/2018
Status: Merged
Merged: 11/25/2018
Merged by: @lafriks

Base: masterHead: master


📝 Commits (3)

  • 7d44157 don't force a password change for the admin user
  • c896b4c Merge branch 'master' of https://github.com/go-gitea/gitea
  • bd3efbd don't totally dicard -must-change-password flag if creating the first (admin) user via the cli. Use flag if present but make sure to default to not forcing a password update

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 cmd/admin.go (+6 -0)

📄 Description

This resolves https://github.com/go-gitea/gitea/issues/5376#issuecomment-441135845 .

If the account being created is the initial admin account, skip requesting a password change.


🔄 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/go-gitea/gitea/pull/5391 **Author:** [@adelowo](https://github.com/adelowo) **Created:** 11/23/2018 **Status:** ✅ Merged **Merged:** 11/25/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`7d44157`](https://github.com/go-gitea/gitea/commit/7d44157f9729532ff8fac642a12e951a3f5bd3b6) don't force a password change for the admin user - [`c896b4c`](https://github.com/go-gitea/gitea/commit/c896b4c44cd6410f3ad1289b5b4dcb20146b5c60) Merge branch 'master' of https://github.com/go-gitea/gitea - [`bd3efbd`](https://github.com/go-gitea/gitea/commit/bd3efbdcd4c83db190aa54fdef16e3d699c1058c) don't totally dicard -must-change-password flag if creating the first (admin) user via the cli. Use flag if present but make sure to default to not forcing a password update ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/admin.go` (+6 -0) </details> ### 📄 Description This resolves https://github.com/go-gitea/gitea/issues/5376#issuecomment-441135845 . If the account being created is the initial admin account, skip requesting a password change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 15:43:03 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17778