Skip to content

Commit

Permalink
Adding ability to override accountButtons signup
Browse files Browse the repository at this point in the history
  • Loading branch information
cfly15 committed Mar 20, 2014
1 parent fc994c1 commit 4e82743
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/entry.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AccountsEntry =
passwordSignupFields: 'EMAIL_ONLY'
emailToLower: true
usernameToLower: false
entrySignUp: '/sign-up'

isStringEmail: (email) ->
emailPattern = /^([\w.-]+)@([\w.-]+)\.([a-zA-Z.]{2,6})$/i
Expand Down
4 changes: 4 additions & 0 deletions client/views/accountButtons/accountButtons.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ Template.entryAccountButtons.helpers

beforeSignedInAs: ->
AccountsEntry.settings.beforeSignedInAs

entrySignUp: ->
AccountsEntry.settings.entrySignUp

2 changes: 1 addition & 1 deletion client/views/accountButtons/accountButtons.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{#unless wrapLinks}}<span>or</span>{{/unless}}

{{#if wrapLinks}}<li>{{/if}}
<a href="/sign-up">{{{beforeSignUp}}}{{i18n "signUp"}}</a>
<a href="{{entrySignUp}}">{{{beforeSignUp}}}{{i18n "signUp"}}</a>
{{#if wrapLinks}}</li>{{/if}}

{{/if}}
Expand Down

0 comments on commit 4e82743

Please sign in to comment.