diff --git a/example/config.yml b/example/config.yml index c50e4957..464d2c38 100644 --- a/example/config.yml +++ b/example/config.yml @@ -1,7 +1,6 @@ backend: - name: netlify-auth - auth_url: "/.netlify/identity" - github_proxy_url: "/.netlify/git/github" + name: test-repo + delay: 0.1 media_folder: "assets/uploads" diff --git a/example/index.html b/example/index.html index c7182f13..262e554b 100644 --- a/example/index.html +++ b/example/index.html @@ -78,9 +78,6 @@ } } - - - diff --git a/src/backends/netlify-auth/AuthenticationPage.js b/src/backends/netlify-auth/AuthenticationPage.js index 884233e8..d23aee69 100644 --- a/src/backends/netlify-auth/AuthenticationPage.js +++ b/src/backends/netlify-auth/AuthenticationPage.js @@ -42,10 +42,10 @@ export default class AuthenticationPage extends React.Component { const { email, password } = this.state; const errors = {}; if (!email) { - errors.email = 'Make sure to enter your user name'; + errors.email = 'Make sure to enter your email.'; } if (!password) { - errors.password = 'Please enter your password'; + errors.password = 'Please enter your password.'; } if (Object.keys(errors).length > 0) { diff --git a/src/backends/netlify-auth/implementation.js b/src/backends/netlify-auth/implementation.js index 3de7b402..66776c5c 100644 --- a/src/backends/netlify-auth/implementation.js +++ b/src/backends/netlify-auth/implementation.js @@ -31,7 +31,7 @@ export default class NetlifyAuth extends GitHubBackend { throw new Error("The NetlifyAuth backend needs an \"github_proxy_url\" in the backend configuration."); } - 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 APIUrl = getEndpoint(config.getIn(["backend", "auth_url"]), netlifySiteURL);