git gateway implementation tweaks

This commit is contained in:
Shawn Erquhart 2017-09-06 18:28:20 -07:00
parent bea470518e
commit cd6162c3d2
3 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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);

View File

@ -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;
} }