diff --git a/app/portainer/views/auth/auth.html b/app/portainer/views/auth/auth.html
index 5a39fcaf2..a012c669e 100644
--- a/app/portainer/views/auth/auth.html
+++ b/app/portainer/views/auth/auth.html
@@ -80,6 +80,7 @@
autocomplete="off"
data-cy="auth-passwordInput"
placeholder="Enter your password"
+ ng-trim="false"
/>