mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 22:13:02 +00:00
Removed switch statement, changed AuthMethod parsing in authInterceptor to be more generic
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import {AuthMethodType} from '../../../shared/log-in/authMethods-type';
|
||||
|
||||
export class AuthMethodModel {
|
||||
authMethodName: string;
|
||||
authMethodType: AuthMethodType;
|
||||
location?: string;
|
||||
authMethodType: AuthMethodType
|
||||
|
||||
constructor(authMethodName: string, location?: string) {
|
||||
this.authMethodName = authMethodName;
|
||||
this.location = location;
|
||||
switch (authMethodName) {
|
||||
case 'ip': {
|
||||
|
Reference in New Issue
Block a user