[PR #4331] [MERGED] Switch plaintext scratch tokens to use hash instead #17336

Closed
opened 2025-11-02 12:32:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4331
Author: @techknowlogick
Created: 6/28/2018
Status: Merged
Merged: 7/27/2018
Merged by: @techknowlogick

Base: masterHead: tklk/issue-3389


📝 Commits (10+)

📊 Changes

5 files changed (+118 additions, -12 deletions)

View changed files

📝 models/migrations/migrations.go (+2 -0)
models/migrations/v71.go (+88 -0)
📝 models/twofactor.go (+18 -7)
📝 routers/user/auth.go (+5 -1)
📝 routers/user/setting/security_twofa.go (+5 -4)

📄 Description

As title

Fix #3389


🔄 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/4331 **Author:** [@techknowlogick](https://github.com/techknowlogick) **Created:** 6/28/2018 **Status:** ✅ Merged **Merged:** 7/27/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `tklk/issue-3389` --- ### 📝 Commits (10+) - [`2fca6d9`](https://github.com/go-gitea/gitea/commit/2fca6d9a7fbe6d3b511af234bf0da6dcc9254e11) switch plaintext tokens to use hash instead - [`050c96f`](https://github.com/go-gitea/gitea/commit/050c96f05f7e4f826b6c3207f961c50987d961a7) remove attrib that wasn't needed - [`412e27b`](https://github.com/go-gitea/gitea/commit/412e27b414c6514fbade798d2f485c20ce8b47a3) correct function call - [`fd4445f`](https://github.com/go-gitea/gitea/commit/fd4445fa98dcee49892d50a1aa1e57e93c2f61c5) show scratch token once to user - [`e46e0bc`](https://github.com/go-gitea/gitea/commit/e46e0bc8a55916284bc7afebce8ea67bc73c7fad) fix error - [`d9d8e0c`](https://github.com/go-gitea/gitea/commit/d9d8e0c55b0a3e0be2d5c5b72835b787f9a041e0) correct redirect URL - [`fa2b6e5`](https://github.com/go-gitea/gitea/commit/fa2b6e5e0f6868aba0cba8a24ff16695de6d3933) add copyright - [`5cb253a`](https://github.com/go-gitea/gitea/commit/5cb253ad10aad422e7fa3ea2263bb0d1c4ef931a) Merge branch 'master' into tklk/issue-3389 - [`7caff96`](https://github.com/go-gitea/gitea/commit/7caff96777142262afb48dffdd79b18ec6e9e99e) fix copy paste issue - [`25ca551`](https://github.com/go-gitea/gitea/commit/25ca551ea6880f54664ef382b33e367fe31089cb) Don't ignore error ### 📊 Changes **5 files changed** (+118 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v71.go` (+88 -0) 📝 `models/twofactor.go` (+18 -7) 📝 `routers/user/auth.go` (+5 -1) 📝 `routers/user/setting/security_twofa.go` (+5 -4) </details> ### 📄 Description As title Fix #3389 --- <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 12:32:54 -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#17336