web/admin: fix source form's userMatchingMode being swapped
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> # Conflicts: # web/src/pages/sources/oauth/OAuthSourceForm.ts # web/src/pages/sources/plex/PlexSourceForm.ts
This commit is contained in:
		@ -124,16 +124,16 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.Identifier} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.Identifier}>
 | 
			
		||||
                        ${t`Link users on unique identifier`}
 | 
			
		||||
                    </option>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.UsernameLink} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.UsernameLink}>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.EmailLink} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailLink}>
 | 
			
		||||
                        ${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}>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.EmailDeny} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailDeny}>
 | 
			
		||||
                        ${t`Use the user's email address, but deny enrollment when the email address already exists.`}
 | 
			
		||||
                    </option>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.EmailLink} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailLink}>
 | 
			
		||||
                    <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.EmailDeny} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailDeny}>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.UsernameDeny} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.UsernameDeny}>
 | 
			
		||||
                        ${t`Use the user's username, but deny enrollment when the username already exists.`}
 | 
			
		||||
                    </option>
 | 
			
		||||
                </select>
 | 
			
		||||
 | 
			
		||||
@ -146,16 +146,16 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.Identifier} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.Identifier}>
 | 
			
		||||
                        ${t`Link users on unique identifier`}
 | 
			
		||||
                    </option>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.UsernameLink} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.UsernameLink}>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.EmailLink} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailLink}>
 | 
			
		||||
                        ${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}>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.EmailDeny} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailDeny}>
 | 
			
		||||
                        ${t`Use the user's email address, but deny enrollment when the email address already exists.`}
 | 
			
		||||
                    </option>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.EmailLink} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailLink}>
 | 
			
		||||
                    <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.EmailDeny} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.EmailDeny}>
 | 
			
		||||
                    <option value=${UserMatchingModeEnum.UsernameDeny} ?selected=${this.instance?.userMatchingMode === UserMatchingModeEnum.UsernameDeny}>
 | 
			
		||||
                        ${t`Use the user's username, but deny enrollment when the username already exists.`}
 | 
			
		||||
                    </option>
 | 
			
		||||
                </select>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user