git gateway implementation tweaks
This commit is contained in:
parent
bea470518e
commit
cd6162c3d2
src/backends
@ -68,10 +68,10 @@ export default class AuthenticationPage extends React.Component {
|
|||||||
const { email, password } = this.state;
|
const { email, password } = this.state;
|
||||||
const errors = {};
|
const errors = {};
|
||||||
if (!email) {
|
if (!email) {
|
||||||
errors.email = 'Make sure to enter your user name';
|
errors.email = 'Make sure to enter your email.';
|
||||||
}
|
}
|
||||||
if (!password) {
|
if (!password) {
|
||||||
errors.password = 'Please enter your password';
|
errors.password = 'Please enter your password.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(errors).length > 0) {
|
if (Object.keys(errors).length > 0) {
|
||||||
|
@ -33,7 +33,7 @@ export default class GitGateway extends GitHubBackend {
|
|||||||
constructor(config) {
|
constructor(config) {
|
||||||
super(config, true);
|
super(config, true);
|
||||||
|
|
||||||
this.accept_roles = (config.getIn(["backend", "accept_roles"]) || new List()).toArray();
|
this.accept_roles = (config.getIn(["backend", "accept_roles"]) || List()).toArray();
|
||||||
|
|
||||||
const netlifySiteURL = localStorage.getItem("netlifySiteURL");
|
const netlifySiteURL = localStorage.getItem("netlifySiteURL");
|
||||||
const APIUrl = getEndpoint(config.getIn(["backend", "identity_url"], defaults.identity), netlifySiteURL);
|
const APIUrl = getEndpoint(config.getIn(["backend", "identity_url"], defaults.identity), netlifySiteURL);
|
||||||
|
@ -36,7 +36,7 @@ export default class TestRepo {
|
|||||||
return Promise.resolve({ email: state.email, name: nameFromEmail(state.email) });
|
return Promise.resolve({ email: state.email, name: nameFromEmail(state.email) });
|
||||||
}
|
}
|
||||||
|
|
||||||
logotu() {
|
logout() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user