diff --git a/client/entry.coffee b/client/entry.coffee index 2efa7c0d..e89ed829 100644 --- a/client/entry.coffee +++ b/client/entry.coffee @@ -30,13 +30,12 @@ AccountsEntry = signInRequired: (router, extraCondition) -> extraCondition ?= true unless Meteor.loggingIn() - if Meteor.user() and extraCondition - router.next() - else + if not (Meteor.user() and extraCondition) Session.set('fromWhere', router.url) Router.go('/sign-in') Session.set('entryError', t9n('error.signInRequired')) - router.next() + router.next() + @AccountsEntry = AccountsEntry diff --git a/client/entry.less b/client/entry.less index fe0dbd7a..d4e7a621 100644 --- a/client/entry.less +++ b/client/entry.less @@ -82,15 +82,6 @@ } } - &#entry-google { - background: #db5a3c; - color: #fff; - - &:hover { - background: #CA4C2E; - } - } - &#entry-github { background: #666; color: #fff; @@ -100,6 +91,11 @@ } } } + + a { + display: block; + margin: auto; + } } .email-option { diff --git a/client/helpers.coffee b/client/helpers.coffee index 3b4f8612..6de978db 100644 --- a/client/helpers.coffee +++ b/client/helpers.coffee @@ -28,7 +28,7 @@ UI.registerHelper 'otherLoginServices', -> Accounts.oauth.serviceNames().length > 0 UI.registerHelper 'loginServices', -> - Accounts.oauth.serviceNames() + ["google", "dropbox", "box", "onedrive"] UI.registerHelper 'showSignupCode', -> AccountsEntry.settings.showSignupCode is true @@ -50,9 +50,12 @@ UI.registerHelper 'containerCSSClass', -> "container-fluid" else "container" - + UI.registerHelper 'rowCSSClass', -> if AccountsEntry.settings.fluidLayout is true "row-fluid" else - "row" \ No newline at end of file + "row" + +UI.registerHelper 'isPrimaryService', (serviceName)-> + serviceName is 'google' or serviceName is 'dropbox' diff --git a/client/t9n/english.coffee b/client/t9n/english.coffee index 6181f772..282d54e8 100644 --- a/client/t9n/english.coffee +++ b/client/t9n/english.coffee @@ -30,7 +30,7 @@ en = "User not found": "User not found" error: - minChar: "7 character minimum password." + minChar: "6 character minimum password." pwOneLetter: "Password requires 1 letter." pwOneDigit: "Password must have at least one digit." usernameRequired: "Username is required." diff --git a/client/views/forgotPassword/forgotPassword.html b/client/views/forgotPassword/forgotPassword.html index 63be3048..eb96f112 100644 --- a/client/views/forgotPassword/forgotPassword.html +++ b/client/views/forgotPassword/forgotPassword.html @@ -1,25 +1,35 @@