Browse Source

Disable autocomplete for password input.

pull/1210/head
Sebastian Stehle 2 years ago
parent
commit
4aa7f77df6
  1. 2
      backend/extensions/Squidex.Extensions/APM/Stackdriver/StackdriverPlugin.cs
  2. 2
      backend/src/Squidex/Areas/IdentityServer/Views/Account/Login.cshtml
  3. 6
      backend/src/Squidex/Areas/IdentityServer/Views/Profile/Profile.cshtml
  4. 4
      backend/src/Squidex/Areas/IdentityServer/Views/Setup/Setup.cshtml

2
backend/extensions/Squidex.Extensions/APM/Stackdriver/StackdriverPlugin.cs

@ -54,6 +54,6 @@ public sealed class StackdriverPlugin : IPlugin
var serviceName = config.GetValue<string>("logging:name") ?? "Squidex"; var serviceName = config.GetValue<string>("logging:name") ?? "Squidex";
var serviceVersion = Assembly.GetEntryAssembly()?.GetName().Version?.ToString(); var serviceVersion = Assembly.GetEntryAssembly()?.GetName().Version?.ToString();
services.AddSingleton(c => ContextExceptionLogger.Create(projectId, serviceVersion, serviceVersion, null)); services.AddSingleton(c => ContextExceptionLogger.Create(projectId, serviceName, serviceVersion, null));
} }
} }

2
backend/src/Squidex/Areas/IdentityServer/Views/Account/Login.cshtml

@ -47,7 +47,7 @@
<div class="form-group"> <div class="form-group">
<div error-for="Password"></div> <div error-for="Password"></div>
<input asp-for="Password" type="password" class="form-control" placeholder="@T.Get("users.login.passwordPlaceholder")" /> <input asp-for="Password" type="password" class="form-control" placeholder="@T.Get("users.login.passwordPlaceholder")" autocomplete="off" />
</div> </div>
<button type="submit" data-testid="login-button" class="btn btn-block btn-primary">@T.Get("common.login")</button> <button type="submit" data-testid="login-button" class="btn btn-block btn-primary">@T.Get("common.login")</button>

6
backend/src/Squidex/Areas/IdentityServer/Views/Profile/Profile.cshtml

@ -82,7 +82,7 @@
<div class="form-group"> <div class="form-group">
<label asp-for="CompanyRole">@T.Get("users.profile.companyRole")</label> <label asp-for="CompanyRole">@T.Get("users.profile.companyRole")</label>
<select type="password" class="form-select" asp-for="CompanyRole"> <select class="form-select" asp-for="CompanyRole">
<option></option> <option></option>
<option value="RoleEmployee">@T.Get("users.profile.roleEmployee")</option> <option value="RoleEmployee">@T.Get("users.profile.roleEmployee")</option>
<option value="RoleBusinessOwner">@T.Get("users.profile.roleBusinessOwner")</option> <option value="RoleBusinessOwner">@T.Get("users.profile.roleBusinessOwner")</option>
@ -96,7 +96,7 @@
<div class="form-group"> <div class="form-group">
<label asp-for="CompanySize">@T.Get("users.profile.companySize")</label> <label asp-for="CompanySize">@T.Get("users.profile.companySize")</label>
<select type="password" class="form-select" asp-for="CompanySize"> <select class="form-select" asp-for="CompanySize">
<option></option> <option></option>
<option value="SizeSingle">@T.Get("users.profile.sizeSingle")</option> <option value="SizeSingle">@T.Get("users.profile.sizeSingle")</option>
<option value="SizeSmall">@T.Get("users.profile.sizeSmall")</option> <option value="SizeSmall">@T.Get("users.profile.sizeSmall")</option>
@ -109,7 +109,7 @@
<div class="form-group"> <div class="form-group">
<label asp-for="Project">@T.Get("users.profile.project")</label> <label asp-for="Project">@T.Get("users.profile.project")</label>
<select type="password" class="form-select" asp-for="Project"> <select class="form-select" asp-for="Project">
<option></option> <option></option>
<option value="ProjectNewsMagazine">@T.Get("users.profile.projectNewsMagazine")</option> <option value="ProjectNewsMagazine">@T.Get("users.profile.projectNewsMagazine")</option>
<option value="ProjectPersonalBlog">@T.Get("users.profile.projectPersonalBlog")</option> <option value="ProjectPersonalBlog">@T.Get("users.profile.projectPersonalBlog")</option>

4
backend/src/Squidex/Areas/IdentityServer/Views/Setup/Setup.cshtml

@ -162,14 +162,14 @@
<label asp-for="Password">@T.Get("common.password")</label> <label asp-for="Password">@T.Get("common.password")</label>
<div error-for="Password"></div> <div error-for="Password"></div>
<input asp-for="Password" type="password" class="form-control" /> <input asp-for="Password" type="password" class="form-control" autocomplete="off" />
</div> </div>
<div class="form-group"> <div class="form-group">
<label asp-for="PasswordConfirm">@T.Get("setup.createUser.confirmPassword")</label> <label asp-for="PasswordConfirm">@T.Get("setup.createUser.confirmPassword")</label>
<div error-for="PasswordConfirm"></div> <div error-for="PasswordConfirm"></div>
<input asp-for="PasswordConfirm" type="password" class="form-control" /> <input asp-for="PasswordConfirm" type="password" class="form-control" autocomplete="off" />
</div> </div>
<div class="form-group mb-0"> <div class="form-group mb-0">

Loading…
Cancel
Save