feat: update logistration pages (#591)

- removed few unused classes
- updated login page to rely on error messages generated
from the frontend only.

VAN-138
This commit is contained in:
Zainab Amir
2022-06-30 17:02:04 +05:00
committed by GitHub
parent f066880c7c
commit 5f2570c440
10 changed files with 29 additions and 101 deletions

View File

@@ -1,17 +1,8 @@
// Utility functions
import * as QueryString from 'query-string';
import { AUTH_PARAMS } from '../constants';
export default function processLink(link) {
let matches;
link.replace(/(.*?)<a href=["']([^"']*).*?>([^<]+)<\/a>(.*)/g, function () { // eslint-disable-line func-names
matches = Array.prototype.slice.call(arguments, 1, 5); // eslint-disable-line prefer-rest-params
});
return matches;
}
export const getTpaProvider = (tpaHintProvider, primaryProviders, secondaryProviders) => {
let tpaProvider = null;
let skipHintedLogin = false;