web/admin: fix source form's userMatchingMode being swapped
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -172,31 +172,31 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> { | |||||||
|                     > |                     > | ||||||
|                         ${t`Link users on unique identifier`} |                         ${t`Link users on unique identifier`} | ||||||
|                     </option> |                     </option> | ||||||
|                     <option |  | ||||||
|                         value=${UserMatchingModeEnum.UsernameLink} |  | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |  | ||||||
|                         UserMatchingModeEnum.UsernameLink} |  | ||||||
|                     > |  | ||||||
|                         ${t`Link to a user with identical email address. Can have security implications when a source doesn't validate email addresses`} |  | ||||||
|                     </option> |  | ||||||
|                     <option |  | ||||||
|                         value=${UserMatchingModeEnum.UsernameDeny} |  | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |  | ||||||
|                         UserMatchingModeEnum.UsernameDeny} |  | ||||||
|                     > |  | ||||||
|                         ${t`Use the user's email address, but deny enrollment when the email address already exists.`} |  | ||||||
|                     </option> |  | ||||||
|                     <option |                     <option | ||||||
|                         value=${UserMatchingModeEnum.EmailLink} |                         value=${UserMatchingModeEnum.EmailLink} | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|                         UserMatchingModeEnum.EmailLink} |                         UserMatchingModeEnum.EmailLink} | ||||||
|                     > |                     > | ||||||
|                         ${t`Link to a user with identical username address. Can have security implications when a username is used with another source.`} |                         ${t`Link to a user with identical email address. Can have security implications when a source doesn't validate email addresses`} | ||||||
|                     </option> |                     </option> | ||||||
|                     <option |                     <option | ||||||
|                         value=${UserMatchingModeEnum.EmailDeny} |                         value=${UserMatchingModeEnum.EmailDeny} | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|                         UserMatchingModeEnum.EmailDeny} |                         UserMatchingModeEnum.EmailDeny} | ||||||
|  |                     > | ||||||
|  |                         ${t`Use the user's email address, but deny enrollment when the email address already exists.`} | ||||||
|  |                     </option> | ||||||
|  |                     <option | ||||||
|  |                         value=${UserMatchingModeEnum.UsernameLink} | ||||||
|  |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|  |                         UserMatchingModeEnum.UsernameLink} | ||||||
|  |                     > | ||||||
|  |                         ${t`Link to a user with identical username address. Can have security implications when a username is used with another source.`} | ||||||
|  |                     </option> | ||||||
|  |                     <option | ||||||
|  |                         value=${UserMatchingModeEnum.UsernameDeny} | ||||||
|  |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|  |                         UserMatchingModeEnum.UsernameDeny} | ||||||
|                     > |                     > | ||||||
|                         ${t`Use the user's username, but deny enrollment when the username already exists.`} |                         ${t`Use the user's username, but deny enrollment when the username already exists.`} | ||||||
|                     </option> |                     </option> | ||||||
|  | |||||||
| @ -182,31 +182,31 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> { | |||||||
|                     > |                     > | ||||||
|                         ${t`Link users on unique identifier`} |                         ${t`Link users on unique identifier`} | ||||||
|                     </option> |                     </option> | ||||||
|                     <option |  | ||||||
|                         value=${UserMatchingModeEnum.UsernameLink} |  | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |  | ||||||
|                         UserMatchingModeEnum.UsernameLink} |  | ||||||
|                     > |  | ||||||
|                         ${t`Link to a user with identical email address. Can have security implications when a source doesn't validate email addresses`} |  | ||||||
|                     </option> |  | ||||||
|                     <option |  | ||||||
|                         value=${UserMatchingModeEnum.UsernameDeny} |  | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |  | ||||||
|                         UserMatchingModeEnum.UsernameDeny} |  | ||||||
|                     > |  | ||||||
|                         ${t`Use the user's email address, but deny enrollment when the email address already exists.`} |  | ||||||
|                     </option> |  | ||||||
|                     <option |                     <option | ||||||
|                         value=${UserMatchingModeEnum.EmailLink} |                         value=${UserMatchingModeEnum.EmailLink} | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|                         UserMatchingModeEnum.EmailLink} |                         UserMatchingModeEnum.EmailLink} | ||||||
|                     > |                     > | ||||||
|                         ${t`Link to a user with identical username address. Can have security implications when a username is used with another source.`} |                         ${t`Link to a user with identical email address. Can have security implications when a source doesn't validate email addresses`} | ||||||
|                     </option> |                     </option> | ||||||
|                     <option |                     <option | ||||||
|                         value=${UserMatchingModeEnum.EmailDeny} |                         value=${UserMatchingModeEnum.EmailDeny} | ||||||
|                         ?selected=${this.instance?.userMatchingMode === |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|                         UserMatchingModeEnum.EmailDeny} |                         UserMatchingModeEnum.EmailDeny} | ||||||
|  |                     > | ||||||
|  |                         ${t`Use the user's email address, but deny enrollment when the email address already exists.`} | ||||||
|  |                     </option> | ||||||
|  |                     <option | ||||||
|  |                         value=${UserMatchingModeEnum.UsernameLink} | ||||||
|  |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|  |                         UserMatchingModeEnum.UsernameLink} | ||||||
|  |                     > | ||||||
|  |                         ${t`Link to a user with identical username address. Can have security implications when a username is used with another source.`} | ||||||
|  |                     </option> | ||||||
|  |                     <option | ||||||
|  |                         value=${UserMatchingModeEnum.UsernameDeny} | ||||||
|  |                         ?selected=${this.instance?.userMatchingMode === | ||||||
|  |                         UserMatchingModeEnum.UsernameDeny} | ||||||
|                     > |                     > | ||||||
|                         ${t`Use the user's username, but deny enrollment when the username already exists.`} |                         ${t`Use the user's username, but deny enrollment when the username already exists.`} | ||||||
|                     </option> |                     </option> | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer