-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update meteor and replace account template package
- Loading branch information
1 parent
ffca276
commit a962685
Showing
12 changed files
with
177 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ standard-app-packages | |
coffeescript | ||
mquandalle:stylus | ||
http | ||
email@1.1.18 | ||
tangelo | ||
mquandalle:jade | ||
twbs:bootstrap | ||
|
@@ -19,9 +19,15 @@ mrt:dbproxy | |
mizzao:autocomplete | ||
chuangbo:marked | ||
iron:router | ||
joshowens:accounts-entry | ||
reactive-var | ||
underscore | ||
[email protected] | ||
[email protected] | ||
bevanhunt:leaflet | ||
miktam:api-password | ||
new3rs:html2canvas | ||
[email protected] | ||
shell-server | ||
accounts-base | ||
accounts-ui | ||
accounts-password | ||
useraccounts:bootstrap | ||
useraccounts:iron-routing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
METEOR@1.0.1 | ||
METEOR@1.4.2.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
Meteor.startup -> | ||
AccountsEntry.config | ||
homeRoute: '/' | ||
dashboardRoute: '/' | ||
passwordSignupFields: 'EMAIL_ONLY' | ||
AccountsTemplates.configureRoute 'signIn', | ||
layoutTemplate: 'layout', | ||
redirect: -> | ||
if window.location.pathname == '/sign-in' | ||
Router.go '/' | ||
|
||
AccountsTemplates.configure | ||
#hideSignUpLink: true | ||
showForgotPasswordLink: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
margin auto | ||
|
||
.symptom-table .info | ||
clear both | ||
width 50% | ||
min-width 400px | ||
max-width 600px | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,34 @@ | ||
Meteor.startup -> | ||
Accounts.emailTemplates.siteName = "GRITS" | ||
Accounts.emailTemplates.from = "GRITS <no-reply@grits>" | ||
Meteor.methods( | ||
### | ||
# Create or update a meteor account for a BSVE user with the given auth info. | ||
# @param authInfo.authTicket - The BSVE authTicket used to verify the account | ||
# with the BSVE. | ||
# @param authInfo.user - The BSVE user's username. The meteor username | ||
# is the BSVE username with bsve- prepended. | ||
### | ||
setPasswordViaBSVEAuthTicket: (authInfo)-> | ||
# The api path chosen here is aribitrary, the call is only to verify that | ||
# the auth ticket works. | ||
response = HTTP.get("https://api.bsvecosystem.net/data/v2/sources/PON", { | ||
headers: | ||
"harbinger-auth-ticket": authInfo.authTicket | ||
}) | ||
if Meteor.settings.private?.disableBSVEAuthentication | ||
throw new Meteor.Error("BSVEAuthFailure", "BSVE Authentication is disabled.") | ||
if response.data.status != 1 | ||
throw new Meteor.Error("BSVEAuthFailure", response.data.message) | ||
meteorUser = Meteor.users.findOne(username: "bsve-" + authInfo.user) | ||
if not meteorUser | ||
console.log "Creating user" | ||
{firstName, lastName} = authInfo.userData | ||
userId = Accounts.createUser( | ||
username: "bsve-" + authInfo.user | ||
profile: | ||
name: firstName + " " + lastName | ||
) | ||
else | ||
userId = meteorUser._id | ||
password = Random.secret() | ||
Accounts.setPassword(userId, password, logout:false) | ||
return password | ||
) |