meteor-accounts

Meteor how to get access to Facebook Graph Api for both Server and Client side

守給你的承諾、 提交于 2019-12-21 20:09:06
问题 accounts-facebook package provides only logIn and logOut functionality. meteor-fbgraph gives access to fbgraph on server side. facebook-sdk gives access to fbgraph on client side. The problem is that facebook-sdk doesn't use anything provided with Accounts-ui, such as Accounts.onLogin event or Accounts.ui.config . After click on {{> loginButtons}} when user is logged in only Meteor.user() does log out, facebook-sdk still has it's AccessToken and remains logged in. In the result half of the

Accounts.onCreateUser adding extra attributes while creating new users, good practices?

断了今生、忘了曾经 提交于 2019-12-21 03:58:40
问题 I'm creating new user with Accounts.createUser() and it works normally if you are not doing anything fancy. But I want to add some other fields to new user that are not listed on documentation. Here is my code: var options = { username: "funnyUserNameHere", email: "username@liamg.com", password: "drowssap", profile: { name: "Real Name" }, secretAttribute: "secretString" }; var userId = Accounts.createUser(options); In this example I have added secretAttribute to my options object. Because

AWS SES with Meteor

删除回忆录丶 提交于 2019-12-20 03:07:17
问题 I'm trying to out a Meteor package to interface with AWS SES called tarang:email-ses built by @Akshat. I'm on Meteor @1.* running on a AWS EC2 instance. When I a test run with the code below, no email was sent out. Meteor Code I've set up the AWS access key ID and secret access key and use it here: Meteor.startup(function () { Email.configSES({ AWSAccessKeyID: 'access-key', AWSSecretKey: 'secret-key' }); }); I've also verified my emails and domain. Here I make sure I'm sending from my

Meteor accounts-twitter unable to get working

二次信任 提交于 2019-12-19 10:18:21
问题 I've been having a go at Meteor. I want to use OAuth to authenticate users on my site as I do not want to implement the login features myself. At the moment my website is very simple. A counter, where you click a button the counter increases by one. The idea being when a user goes to another machine and logs in their count is persisted. I have followed the steps on meteor.com/accounts. meteor add accounts-twitter and meteor add accounts-ui Added {{> loginButtons}} to HTML. In Cloud9 terminal

Meteor: How to assign different roles to users during sign up process

橙三吉。 提交于 2019-12-19 02:03:50
问题 I am using the meteor package ian:accounts-ui-bootstrap-3 for accounts and alanning:roles for assigning roles. On the sign up form I have two options one for Doctor and one for Advisor . I want to assign the selected option as a role to that user. Can someone let me know how to do this? I have just started learning meteor and don't know much about its flow. I can assign roles to a user if I create the user manually like this: var adminUser = Meteor.users.findOne({roles:{$in:["admin"]}}); if(

Meteor.loginWithGoogle error 10 on android

放肆的年华 提交于 2019-12-14 04:17:20
问题 I used the function Meteor.loginWithGoogle as below to login with google. It's working on browser but It's fail (the console log is error 10 ) when I build to apk (by cordova). handleLoginError(err, service) { console.error(err); } Meteor.loginWithGoogle({}, (err) => { if (err) { this.handleLoginError(err, 'google'); } else { this.handleLoginSuccess(); } }); 回答1: Just found the solution on https://forum.ionicframework.com/t/google-login-error-10/93230/4 In your case, Cordova is not signing

Can I use the same DB for multiple Meteor apps?

本秂侑毒 提交于 2019-12-14 03:39:43
问题 Use case: the app I built on app.foo.com , and an instance of telescope on community.foo.com , on separate application servers. The only collection they'd share is users . I would give the same mongo url and oplog url to both apps, and make sure that other than users , collection names did not overlap between the two apps. Should this work fine? Any performance concerns? 回答1: The problem with this is you have to share the collection names. If you use your databases you're also insured against

How to access Meteor user collection on server and debug correctly

喜你入骨 提交于 2019-12-13 06:04:53
问题 When validating objects for database insert, I would like to access the Meteor.users collection to let the user know if he added an event manager to the event who is stored in the database. I extended the discover meteor book example for my needs. I know of the Meteor Accounts API, but I'm stuck at the moment how to proceed. Here is the Meteor method Meteor.methods({ eventInsert: function(eventAttributes) { check(Meteor.userId(), String); check(eventAttributes, { title: String, shareInPercent

Meteor.. accounts- password— Create account on client without login

痞子三分冷 提交于 2019-12-12 21:31:05
问题 I'm using accounts-password package - Meteor. I code interface for admin. Admin will create accounts for other user. Accounts.createUser({ email: "abc@gmail.com", password : "abc123", profile: { name: register_name } }); But after this code executed, my application automatic login with account abc@gmail.com , wich i don't want it Question How to create accounts without automatic login? I read accounts-password source but i dont know how to remove automatic login I also tried to use Meteor

Meteor: Do Something On Email Verification Confirmation

末鹿安然 提交于 2019-12-12 18:04:42
问题 On my server I made accounts require email verification and to send the verification email: Accounts.config({sendVerificationEmail: true, forbidClientAccountCreation: false}); I read somewhere online that the verification link will redirect the user to the home page of the web app once clicked. On that home page I try to catch the first time it gets confirmed as I would like to add some entries to the MONGO DB the FIRST TIME the email gets verified and the user gets authenticated. So I try to