Skip to content

Commit

Permalink
ENH: Support '-' in API access username
Browse files Browse the repository at this point in the history
This character is also allowed in emails.

Co-authored-by: Dmitri Gavrilov <[email protected]>
  • Loading branch information
flowln and dmgav authored Feb 19, 2024
1 parent 113a47d commit 750199c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluesky_httpserver/authorization/api_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- type: object
additionalProperties: false
patternProperties:
"^[a-zA-Z_][0-9a-zA-Z_.@]*$":
"^[a-zA-Z_][0-9a-zA-Z_.@\-]*$":
oneOf:
- type: object
additionalProperties: false
Expand Down Expand Up @@ -348,7 +348,7 @@ def get_user_info(self, username):
- type: object
additionalProperties: false
patternProperties:
"^[0-9a-zA-Z_.@]+$":
"^[0-9a-zA-Z_.@\-]+$":
oneOf:
- type: object
additionalProperties: false
Expand Down

0 comments on commit 750199c

Please sign in to comment.