Skip to content

Commit 5cdf41d

Browse files
committed
trim and lowercase username
1 parent 1ea509d commit 5cdf41d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.2.1] - 2020-05-09
2+
### Changed
3+
- trim and lowercase username on oauth login
4+
5+
16
## [0.2.0] - 2020-05-06
27
### Added
38
- dynamic client loading from `configuration.json`

core/authentication/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ async def authorization_endpoint_post(
288288
else:
289289
raise web.HTTPFound(f"{redirect_uri}?error=unauthorized_client")
290290

291-
email = data["email"]
291+
email = data["email"].strip(" ").lower()
292292
password = data["password"]
293293

294294
# validate credentials

core/webserver/templates/authorize.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ span.password {
7979

8080
<div class="container">
8181
<label for="uname"><b>Username</b></label>
82-
<input type="text" placeholder="Enter Username" name="email" required>
82+
<input type="text" placeholder="Enter Username" name="email" required style="text-transform: lowercase;">
8383

8484
<label for="password"><b>Password</b></label>
8585
<input type="password" placeholder="Enter Password" name="password" required>

0 commit comments

Comments
 (0)