mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Make captcha and password optional for external accounts (#6606)
This commit is contained in:
		@@ -15,10 +15,12 @@
 | 
			
		||||
				<label for="user_name">{{.i18n.Tr "home.uname_holder"}}</label>
 | 
			
		||||
				<input id="user_name" name="user_name" value="{{.user_name}}" autofocus required>
 | 
			
		||||
			</div>
 | 
			
		||||
			{{if not .DisablePassword}}
 | 
			
		||||
			<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn))}}error{{end}}">
 | 
			
		||||
				<label for="password">{{.i18n.Tr "password"}}</label>
 | 
			
		||||
				<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
 | 
			
		||||
			</div>
 | 
			
		||||
			{{end}}
 | 
			
		||||
			{{if not .LinkAccountMode}}
 | 
			
		||||
			<div class="inline field">
 | 
			
		||||
				<label></label>
 | 
			
		||||
 
 | 
			
		||||
@@ -25,14 +25,17 @@
 | 
			
		||||
							<label for="email">{{.i18n.Tr "email"}}</label>
 | 
			
		||||
							<input id="email" name="email" type="email" value="{{.email}}" required>
 | 
			
		||||
						</div>
 | 
			
		||||
						<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
 | 
			
		||||
							<label for="password">{{.i18n.Tr "password"}}</label>
 | 
			
		||||
							<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
 | 
			
		||||
						</div>
 | 
			
		||||
						<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
 | 
			
		||||
							<label for="retype">{{.i18n.Tr "re_type"}}</label>
 | 
			
		||||
							<input id="retype" name="retype" type="password" value="{{.retype}}" autocomplete="off" required>
 | 
			
		||||
						</div>
 | 
			
		||||
 | 
			
		||||
						{{if not .DisablePassword}}
 | 
			
		||||
							<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
 | 
			
		||||
								<label for="password">{{.i18n.Tr "password"}}</label>
 | 
			
		||||
								<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
 | 
			
		||||
							</div>
 | 
			
		||||
							<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
 | 
			
		||||
								<label for="retype">{{.i18n.Tr "re_type"}}</label>
 | 
			
		||||
								<input id="retype" name="retype" type="password" value="{{.retype}}" autocomplete="off" required>
 | 
			
		||||
							</div>
 | 
			
		||||
						{{end}}
 | 
			
		||||
						{{if and .EnableCaptcha (eq .CaptchaType "image")}}
 | 
			
		||||
							<div class="inline field">
 | 
			
		||||
								<label></label>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user