0
Fork 0
mirror of https://projects.blender.org/infrastructure/gitea-custom.git synced 2025-01-03 05:10:05 -05:00

Auth: Fix link account

Inputs must not be disabled otherwise it gives an error (field cannot be empty)
This commit is contained in:
Pablo Vazquez 2023-02-08 17:13:41 +01:00
parent 1c961188a0
commit bc97b622df

View file

@ -25,11 +25,11 @@
<div class="disabled required inline field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}"> <div class="disabled required inline field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
<label for="user_name">{{.locale.Tr "username"}}</label> <label for="user_name">{{.locale.Tr "username"}}</label>
<input disabled id="user_name" type="text" name="user_name" value="{{.user_name}}" required style="opacity: var(--opacity-disabled)"> <input id="user_name" type="text" name="user_name" value="{{.user_name}}" required style="opacity: var(--opacity-disabled)">
</div> </div>
<div class="disabled required inline field {{if .Err_Email}}error{{end}}"> <div class="disabled required inline field {{if .Err_Email}}error{{end}}">
<label for="email">{{.locale.Tr "email"}}</label> <label for="email">{{.locale.Tr "email"}}</label>
<input disabled id="email" name="email" type="email" value="{{.email}}" required style="opacity: var(--opacity-disabled)"> <input id="email" name="email" type="email" value="{{.email}}" required style="opacity: var(--opacity-disabled)">
</div> </div>
<div class="inline field"> <div class="inline field">