[PR #10549] [MERGED] 9669 sanitize usernames #13653

Closed
opened 2025-12-29 23:20:05 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10549
Author: @arthanson
Created: 10/4/2022
Status: Merged
Merged: 10/5/2022
Merged by: @jeremystretch

Base: developHead: 9669-sanitize-usernames


📝 Commits (2)

  • 5a54c68 9669 sanitize social auth usernames
  • 850f872 Merge branch 'develop' into 9669-sanitize-usernames

📊 Changes

2 files changed (+10 additions, -1 deletions)

View changed files

📝 netbox/netbox/settings.py (+1 -1)
netbox/users/utils.py (+9 -0)

📄 Description

Fixes: #9669

Ad discussed, haven't really tested, but should work. The clean_usersnames is from social_auth, just added the line 8 replace to it.


🔄 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/netbox-community/netbox/pull/10549 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 10/4/2022 **Status:** ✅ Merged **Merged:** 10/5/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `9669-sanitize-usernames` --- ### 📝 Commits (2) - [`5a54c68`](https://github.com/netbox-community/netbox/commit/5a54c68c3c1ccd23045270d8c6eee0e3266d4e22) 9669 sanitize social auth usernames - [`850f872`](https://github.com/netbox-community/netbox/commit/850f87204b941979024ef26b7386ff704f64852e) Merge branch 'develop' into 9669-sanitize-usernames ### 📊 Changes **2 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/settings.py` (+1 -1) ➕ `netbox/users/utils.py` (+9 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WE BE CLOSED AUTOMATICALLY. Specify your assigned issue number on the line below. --> ### Fixes: #9669 <!-- Please include a summary of the proposed changes below. --> Ad discussed, haven't really tested, but should work. The clean_usersnames is from social_auth, just added the line 8 replace to it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:20:05 +01:00
adam closed this issue 2025-12-29 23:20:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13653