meteor-accounts

Using onResetPasswordLink, onEnrollmentLink, and onEmailVerificationLink methods properly in Meteor

孤者浪人 提交于 2019-12-12 07:57:24
问题 I was wondering if someone would be kind enough to provide a meteorpad or code example of using one of the methods listed above properly in Meteor (with iron:router). I'm struggling to understand how exactly these methods interact with my app, and it seems these methods are new enough that there isn't much good documentation on how to use them correctly. Thanks! http://docs.meteor.com/#/full/Accounts-onResetPasswordLink 回答1: Ok, so I am going to post what I ended up learning and doing here so

Can't validate email token when calling Accounts.sendVerificationEmail a second time

痴心易碎 提交于 2019-12-12 02:58:57
问题 I installed a process of email address verification using Meteor Accounts. It works fine, but when Accounts.sendVerificationEmail() is called a second time, the Account.verifyEmail() method always refuse with a 403: Verify email link expired when called on the new token. The email verification token set in Meteor.users by the first call to Accounts.sendVerificationEmail() is not changed when calling that method again: It's still the link sent with the first email that will work. I can't find

Oauth / Uncaught TypeError: Cannot read property '1' of null

筅森魡賤 提交于 2019-12-11 15:06:52
问题 I'm trying out meteor oauth using google-accounts. I'm seeing it working fine locally, but when I deploy ( using this process http://bit.ly/1Hrp7Oz ), no oauth popup appears and I see this error: Uncaught TypeError: Cannot read property '1' of null which is occurring at line 3 packages/url/url_client.js URL._constructUrl = function (url, query, params) { var query_match = /^(.*?)(\?.*)?$/.exec(url); Url(query_match[1], query_match[2], query, params); // 3 }; Not sure how to debug this 回答1:

Meteor log out do not sync between tabs

佐手、 提交于 2019-12-11 13:56:43
问题 I am using Meteor with React and is facing a problem on log out function. When I open more than 2 tabs on the same browser, If I logged out from one tab then the other opening tabs would not be logged out but will be hang if I using it. There are only 2 ways to log out: close the tab or refresh it. I try the same for log in function and it worked, log in status is synced between all opening tabs. My current code to call the log out function: signOut: function(event) { event.preventDefault();

Meteor.users collection

廉价感情. 提交于 2019-12-11 13:13:40
问题 I'm new to meteor and I've reading a lot however I'm a little confused around the meteor.users collection and the best way to use it. My interpretation of the best practice guide is that meteor.users collection should only be used for managing the accounts.ui package; email, password and username. The guide states that profile is insecure, a flaw in the original meteor design and should not be used. So my question is, if I want to create a user profile that contains things like first name,

Meteor.loginWithFacebook not storing email address

有些话、适合烂在心里 提交于 2019-12-11 11:12:43
问题 I'm using accounts-password accounts-facebook service-configuration On the server: ServiceConfiguration.configurations.remove({ service: 'facebook' }); ServiceConfiguration.configurations.upsert( { service: 'facebook' }, { $set: { appId: 'xxxxxxxxxxxxxxxx', secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' } } ); On the client: Meteor.loginWithFacebook({requestPermissions: ['email']}, function(error){ if (error) { throwError('Could not log in'); } else { // success } }); This configuration prompts

Separating users database into two different collections

自作多情 提交于 2019-12-11 05:52:24
问题 I want to build a project that will contain different type of users such us Admins & Employees. Is it possible to make it done through accounts-password and accounts-ui by separating Meteor.users collection? 回答1: You can't do that, users is the heart of the authentication system. I would recommend using the package alanning:roles to provide different levels of privilege. Read more here https://atmospherejs.com/alanning/roles There is a package to help administer these here https://github.com

Creating account using accounts-password in meteor

大城市里の小女人 提交于 2019-12-11 04:07:10
问题 I am trying to create account in project created using meteor-boilerplate.I am trying to create it from client. When I hit create account, error comes "signups forbidden". I can still log in using the credentials present in db. I'm using accounts-password, accounts-UI, Will anyone tell me solution... 回答1: This happened to me when conflicting account packages were present at the same time. I solved it by doing meteor remove useraccounts:bootstrap In your case, it may be accounts-ui or

AWS SES Production Access setup with Meteor

六眼飞鱼酱① 提交于 2019-12-11 03:27:17
问题 Setting up Meteor to use "out of the box" AWS SES is simple, and one can use native Meteor "Email" methods without modification. Steps to implement this can be found here. Thanks to Brian Shamblen for putting together a detailed answer. But one caveat with the "out of the box" SES is you need to both verify the sender and receiver email address. To remedy this, you can put in a request with AWS SES for what they call, Production Access . And further, according to Brian Shamblen, The process

Meteor.logout() causes helper to rerun

烈酒焚心 提交于 2019-12-11 02:53:51
问题 I want to add a logout button to my application but that turns out to be more difficult than I thought because there's a situation in which a helper is called unexpectedly after calling Meteor.logout . Consider the following simple application (you can find the complete code in this MeteorPad; I tried to keep it as short as possible): The server publishes the contents of a Tasks collection if the user is logged in. Otherwise, it publishes no records. Meteor.publish('tasks', function() { if