Questions tagged [meteor-useraccounts]

30 questions
4
votes
3 answers

How to add custom fields to Meteor.users collection?

Sorry for my english. I use the package useraccounts:bootstrap for login, registration and so on. How can I add arbitrary data to Meteor.users collection after registration. For example, I want, that users after registration had a field 'status'…
2
votes
1 answer

Meteor AccountTemplates/UserAccounts - how to run code on email verify?

I've got some code I want to run after the user verifies their email. Where would I put that? The only place I can think is a redirected route, but that's a bit hacky, and relies on the user waiting for the redirect to happen. I'm using…
Michael Cole
  • 15,473
  • 7
  • 79
  • 96
1
vote
1 answer

Meteor Autoform - How can I show specific user data?

Please accept my apologies if this has been asked, I'm sure it has and I'm equally sure it's something minor I'm missing, not understanding correctly. I've running the following locally https://autoform.meteorapp.com/updateaf I'm specifically using…
1
vote
2 answers

FlowRouter.go(redirect) gets triggered, but does not actually redirect

FlowRouter.go(redirect); //gets triggered, but site does not actually redirect until refreshed. I followed this guide to structure my routes: var authorised = FlowRouter.group(); var publicRoutes =…
user2587676
  • 117
  • 1
  • 11
1
vote
0 answers

Display form fields based on user type with Meteor Useraccount package

Could anyone help me to figure out how to get around this please? Here is the scenario: Assume there are three types of user namely student, teacher, and parent that I want to save in my collection using useraccounts package. Problem In my…
1
vote
2 answers

Meteor - event on {{if currentUser}} content loaded

I have a template {{#if currentUser}} {{/if}} I want do add $('#datetimepicker').datetimepicker(); But in methods of template: onCreated onRendered content of {{#if currentUser}} is not accessible…
Daniel
  • 7,684
  • 7
  • 52
  • 76
1
vote
1 answer

HTML5 - unwanted
autofocus on mobile browsers

My signup page has two forms; when you go to the page on a mobile browser (confirmed on Android and iOS), it autofocuses on the first input element in the second form and opens the keyboard, jumping past the first form. All I want is to stop the…
rubie
  • 1,906
  • 2
  • 20
  • 26
1
vote
0 answers

Clearing Meteor.userId() from client browser after calling Meteor.logoutOtherClients()?

When I open up a browser #1 and log in to our app and then open browser #2 and log in to our app, the first browser log in session closes. I am accomplishing this by calling Meteor.logoutOtherClients(). However, I notice that in browser #1, the…
jeffci
  • 2,537
  • 6
  • 37
  • 59
1
vote
2 answers

Password Reset token is returning null, although defined

I'm utilizing useraccounts:unstyled, accounts-base, accounts-password and trying to implement a password resetting feature. I have my route defined as such: FlowRouter.route('/reset-password/:token', { name: 'reset-password', onBeforeAction:…
Sleep Deprived Bulbasaur
  • 2,368
  • 4
  • 21
  • 33
1
vote
1 answer

Using angular2-meteor and useraccounts

I was wondering how one could go about using the useraccounts package with angular2-meteor to create a custom UI for logging in. I was following the tutorial for angular2-meteor …
1
vote
1 answer

How to get userId in observe callback

I want to use observe for one of my collection on the server but I need to get userId, I'm trying to use this.userId and also Meteor.userId() but not working! see the below code for more detail and error message how to resolve it…
1
vote
1 answer

Meteor.users.allow for Autoform

my first time playing with Meteor, and this question probably comes from my lack of understanding the allow/deny concept of Collections. I have a page that is accessible by the logged in admin, which allows the admin to modify existing users. To…
aDvo
  • 894
  • 4
  • 15
  • 43
1
vote
1 answer

Meteor login with facebook

I have a meteor app, with packages : useraccounts:bootstrap; service-configuration; accounts-facebook; The facebook side was configured to allow requests from localhost. When using the register/signin with facebook from the atForm, a popup…
1
vote
0 answers

Can't login after logout using AccountsTemplates

I have the following configuration for useraccounts: AccountsTemplates.configure({ defaultLayout: 'baseLayout', defaultLayoutRegions: {}, defaultContentRegion: 'content', defaultState: 'signUp', confirmPassword: false, onLogoutHook:…
Joaquín L. Robles
  • 6,261
  • 10
  • 66
  • 96
0
votes
0 answers

Meteor-Angular: Meteor.User is not assignable to type User

i have an Angular Meteor project running. Its running but for some reason after i tryed to update all packages ( which was not working ) im getting the following errors while compiling. client/imports/app/team/team-edit.component.ts (104, 33): Type…
xQp
  • 302
  • 1
  • 5
  • 22
1
2