Code Monkey home page Code Monkey logo

meteor-accounts-ui-bootstrap-3's Introduction

meteor-accounts-ui-bootstrap-3

Meteor accounts-ui styled with Twitter's Bootstrap 3, now with multi-language support.

Installation

With Meteor >=0.9.0:

$ meteor add ian:accounts-ui-bootstrap-3

twbs:bootstrap is the recommended Meteor implementation of Twitter's Bootstrap, and is declared as a weak dependency in this package. nemo64:bootstrap is also supported. If you're using any other Bootstrap package, you're on your own regarding load order problems.

Install Bootstrap like so:

$ meteor add twbs:bootstrap

This package is a replacement for the official accounts-ui package, so remove it if it's already in your project:

$ meteor remove accounts-ui

You will also need at least one accounts plugin: meteor add accounts-password, meteor add accounts-github, etc.

How to use

Add {{> loginButtons}} to your template

Example:

<div class="navbar navbar-default" role="navigation">
	<div class="navbar-header">
		<a class="navbar-brand" href="#">Project name</a>
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
	</div>
	<div class="navbar-collapse collapse">
		<ul class="nav navbar-nav">
			<li class="active"><a href="#">Link</a></li>
		</ul>
		<ul class="nav navbar-nav navbar-right">
			{{> loginButtons}} <!-- here -->
		</ul>
	</div>
</div>

You can also configure Accounts.ui to your liking as you would with the official accounts-ui package.

Add additional logged in actions

You can add additional markup to the logged in dropdown, e.g. to edit the user's account or profile, by defining a _loginButtonsAdditionalLoggedInDropdownActions template and specifying the corresponding events.

<template name="_loginButtonsAdditionalLoggedInDropdownActions">
	<button class="btn btn-default btn-block" id="login-buttons-edit-profile">Edit profile</button>
</template>
Template._loginButtonsLoggedInDropdown.events({
	'click #login-buttons-edit-profile': function(event) {
		Router.go('profileEdit');
	}
});

Note that the dropdown will close since we're not stopping the propagation of the click event.

Custom signup options

You can define additional input fields to appear in the signup form, and you can decide wether to save these values to the profile object of the user document or not. Specify an array of fields using Accounts.ui.config like so:

Accounts.ui.config({
    requestPermissions: {},
    extraSignupFields: [{
        fieldName: 'first-name',
        fieldLabel: 'First name',
        inputType: 'text',
        visible: true,
        validate: function(value, errorFunction) {
          if (!value) {
            errorFunction("Please write your first name");
            return false;
          } else {
            return true;
          }
        }
    }, {
        fieldName: 'last-name',
        fieldLabel: 'Last name',
        inputType: 'text',
        visible: true,
    }, {
        fieldName: 'gender',
        showFieldLabel: false,      // If true, fieldLabel will be shown before radio group
        fieldLabel: 'Gender',
        inputType: 'radio',
        radioLayout: 'vertical',    // It can be 'inline' or 'vertical'
        data: [{                    // Array of radio options, all properties are required
    		id: 1,                  // id suffix of the radio element
            label: 'Male',          // label for the radio element
            value: 'm'              // value of the radio element, this will be saved.
          }, {
            id: 2,
            label: 'Female',
            value: 'f',
            checked: 'checked'
        }],
        visible: true
    }, {
        fieldName: 'country',
        fieldLabel: 'Country',
        inputType: 'select',
        showFieldLabel: true,
        empty: 'Please select your country of residence',
        data: [{
            id: 1,
            label: 'United States',
            value: 'us'
          }, {
            id: 2,
            label: 'Spain',
            value: 'es',
        }],
        visible: true
    }, {
        fieldName: 'terms',
        fieldLabel: 'I accept the terms and conditions',
        inputType: 'checkbox',
        visible: true,
        saveToProfile: false,
        validate: function(value, errorFunction) {
            if (value) {
                return true;
            } else {
                errorFunction('You must accept the terms and conditions.');
                return false;
            }
        }
    }]
});

Result:

Custom signup form example

Alternatively, if you prefer to pass values directly to the onCreateUser function, without creating new fields in the signup form, you can use the accountsUIBootstrap3.setCustomSignupOptions function. If it exists, the returned value is handled as the initial options object, which is later available in onCreateUser on the server. For example:

accountsUIBootstrap3.setCustomSignupOptions = function() {
    return {
    	referrerId: Session.get('referrerId') // Or whatever
    }
}

Logout callback

If the function accountsUIBootstrap3.logoutCallback exists, it will be called as the callback of Meteor.logout. For example:

accountsUIBootstrap3.logoutCallback = function(error) {
  if(error) console.log("Error:" + error);
  Router.go('home');
}

Forcing lowercase email, username or password

This will force emails, usernames or passwords to be lowercase on signup and will also allow users to login using uppercase emails, usernames or passwords, as it will convert them to lowercase before checking against the database. Beware however that users who already have an account with uppercase usernames or passwords won't be able to login anymore.

Accounts.ui.config({
    forceEmailLowercase: true,
    forceUsernameLowercase: true,
    forcePasswordLowercase: true
});

Note: If you allow your users to login using both username or email, that field will only be converted to lowercase if both forceEmailLowercase and forceUsernameLowercase are set to true.

Localization

The default language is English, but this package also comes with translations to many other languages built in. If you want to change the language run one of the following on the client:

accountsUIBootstrap3.setLanguage('es'); // for Spanish
accountsUIBootstrap3.setLanguage('ca'); // for Catalan
accountsUIBootstrap3.setLanguage('fr'); // for French
accountsUIBootstrap3.setLanguage('de'); // for German
accountsUIBootstrap3.setLanguage('it'); // for Italian
accountsUIBootstrap3.setLanguage('pt-PT'); // for Portuguese (Portugal)
accountsUIBootstrap3.setLanguage('pt-BR'); // for Portuguese (Brazil)
accountsUIBootstrap3.setLanguage('ru'); // for Russian
accountsUIBootstrap3.setLanguage('el'); // for Greek
accountsUIBootstrap3.setLanguage('ko'); // for Korean
accountsUIBootstrap3.setLanguage('ar'); // for Arabic
accountsUIBootstrap3.setLanguage('pl'); // for Polish
accountsUIBootstrap3.setLanguage('zh-CN'); // for Chinese (China)
accountsUIBootstrap3.setLanguage('zh-TW'); // for Chinese (Taiwan)
accountsUIBootstrap3.setLanguage('nl'); // for Dutch
accountsUIBootstrap3.setLanguage('ja'); // for Japanese
accountsUIBootstrap3.setLanguage('he'); // for Hebrew
accountsUIBootstrap3.setLanguage('sv'); // for Swedish
accountsUIBootstrap3.setLanguage('uk'); // for Ukrainian
accountsUIBootstrap3.setLanguage('fi'); // for Finnish
accountsUIBootstrap3.setLanguage('vi'); // for Vietnamese
accountsUIBootstrap3.setLanguage('sk'); // for Slovak
accountsUIBootstrap3.setLanguage('be'); // for Belarusian
accountsUIBootstrap3.setLanguage('fa'); // for Persian
accountsUIBootstrap3.setLanguage('sr-Cyrl'); // for Serbian, Cyrillian script
accountsUIBootstrap3.setLanguage('sr-Latn'); // for Serbian, Latin script
accountsUIBootstrap3.setLanguage('hu'); // for Hungarian

If you want to implement your own language, use the map function like so:

accountsUIBootstrap3.map('es', {
    _resetPasswordDialog: {
      title: 'Restablece tu contraseña',
      cancel: 'Cancelar',
      submit: 'Guardar'
    },
    _enrollAccountDialog: {
      title: 'Escribe una contraseña',
      cancel: 'Cerrar',
      submit: 'Guardar contraseña'
    },
    // ...
})

You can use the translation files in the i18n folder as an example.

Screenshots

Sign In Sign Up Configure Login Service

meteor-accounts-ui-bootstrap-3's People

Contributors

abhishekbatra avatar brugnara avatar comerc avatar danielsvane avatar erobit avatar handtrix avatar ianmartorell avatar jordangarside avatar joujiahe avatar launux avatar louwers avatar lyuggang avatar marsuboss avatar massimilianomarini avatar natesilva avatar nerijunior avatar novicaz avatar oae avatar rajit avatar shriharshmishra avatar smuron avatar sscaff1 avatar stef-k avatar svasva avatar tarikkarsi avatar tdbs avatar terkalma avatar treybean avatar yasinuslu avatar yp2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor-accounts-ui-bootstrap-3's Issues

Provide additional options for Accounts.onCreateUser

Hi, I guess the title is self explained. So how can I pass some additional options values, which I then can validate on the server side. In my case, I need a affiliate userId which "gave" the link to this new user, so I can provide some points for the affiliate, or so. It would be cool to have some Hooks on the client side as well.

Thank you

add loggedOut template+helper

I need to add a "privacy" checkbox that user must check in order to complete registration. There's a chance to achieve this with this plugin?

Many thanks.

Exception from Tracker afterFlush function: undefined is not a function

Exception from Tracker afterFlush function: undefined is not a function
TypeError: undefined is not a function
at Template._resetPasswordDialog.rendered (http://localhost:3000/packages/ian_accounts-ui-bootstrap-3.js?9072b09726d7336be1eba25cfd955328da16a7b4:2699:10)
at null. (http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:2970:21)
at http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:1720:14
at Object.Blaze._withCurrentView (http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:2029:12)
at http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:1719:15
at Tracker.flush (http://localhost:3000/packages/tracker.js?192a05cc46b867dadbe8bf90dd961f6f8fd1574f:438:11)
debug.js:41

Exception from Tracker afterFlush function: undefined is not a function
TypeError: undefined is not a function
at Template._enrollAccountDialog.rendered (http://localhost:3000/packages/ian_accounts-ui-bootstrap-3.js?9072b09726d7336be1eba25cfd955328da16a7b4:2748:10)
at null. (http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:2970:21)
at http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:1720:14
at Object.Blaze._withCurrentView (http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:2029:12)
at http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:1719:15
at Tracker.flush (http://localhost:3000/packages/tracker.js?192a05cc46b867dadbe8bf90dd961f6f8fd1574f:438:11)

How to add custom fields in sign-in and forgot-password ?

Hi,

Thanks for your package, it is awesome. Especially the extra signup fields feature.
I'd like to use it to implement 2-factor authentication with yubikey.
For this I'd need an extra field for the One Time Password in the signup, signin and forgot password templates.
I guess this is not possible for now. If I fork your project, how can I add this ?

requestOfflineToken not working

Hi,
Thanks for the package.
I wanted offline access with google and wasn't working when using your package. if I removed your package the refresh token was set! so check if the default Accounts.ui behavior works with your app.

Missing icon in OAuth services

When adding a third party OAuth service, it usually add an icon into its CSS this way (using steam as service name example):

#login-buttons-image-steam {
  background-image: url(data:image/png;base64,XXXX=);
}

Then the regular accounts-ui add this div on the left inside the "button":

<div class="login-image" id="login-buttons-image-steam"></div>

Error: There are multiple templates named '_loginButtonsLoggedIn'

Whenever I add ian:accounts-ui-bootstrap-3 to my Meteor project, the app goes blank and the web console has the following errors:

The connection to ws://localhost:3000/sockjs/920/ug0fo9gw/websocket was interrupted while the page was loading. ddp.js:1344
Error: There are multiple templates named '_loginButtonsLoggedIn'. Each template needs a unique name. templating.js:59
TypeError: Package['ian:accounts-ui-bootstrap-3'] is undefined global-imports.js:7
ReferenceError: Template is not defined template.layout.js:2
ReferenceError: Template is not defined template.nav.js:2
ReferenceError: Template is not defined template.job_index.js:2
ReferenceError: Template is not defined template.hello.js:2
ReferenceError: Accounts is not defined account.js:1
ReferenceError: Session is not defined client.js:2
ReferenceError: Spacebars is not defined accounts-ui-unstyled.js:634
ReferenceError: Template is not defined twbs_bootstrap.js:2358
ReferenceError: Spacebars is not defined iron_layout.js:95
"Exception in defer callback: DynamicTemplate.prototype._attachEvents@http://localhost:3000/packages/iron_dynamic-template.js?d425554c9847e4a80567f8ca55719cd6ae3f2722:430:1
DynamicTemplate.prototype.events@http://localhost:3000/packages/iron_dynamic-template.js?d425554c9847e4a80567f8ca55719cd6ae3f2722:414:3
Controller@http://localhost:3000/packages/iron_controller.js?b02790701804563eafedb2e68c602154983ade06:243:3
RouteController<.constructor@http://localhost:3000/packages/iron_router.js?a427868585af16bb88b7c9996b2449aebb8dbf51:104:5
Iron.utils.extend/ctor@http://localhost:3000/packages/iron_core.js?d966a1f70c94792fd94c8a155bdbef9bec5e0047:159:5
Route.prototype.createController@http://localhost:3000/packages/iron_router.js?a427868585af16bb88b7c9996b2449aebb8dbf51:830:18
Router.prototype.createController@http://localhost:3000/packages/iron_router.js?a427868585af16bb88b7c9996b2449aebb8dbf51:1120:18
Router.prototype.dispatch@http://localhost:3000/packages/iron_router.js?a427868585af16bb88b7c9996b2449aebb8dbf51:1683:18
onLocationChange@http://localhost:3000/packages/iron_router.js?a427868585af16bb88b7c9996b2449aebb8dbf51:1772:20
Tracker.Computation.prototype._compute@http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:296:5
Tracker.Computation@http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:214:5
Tracker.autorun@http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:487:11
Router.prototype.start@http://localhost:3000/packages/iron_router.js?a427868585af16bb88b7c9996b2449aebb8dbf51:1765:31
Router/</<@http://localhost:3000/packages/iron_router.js?a427868585af16bb88b7c9996b2449aebb8dbf51:968:9
.withValue@http://localhost:3000/packages/meteor.js?81e2f06cff198adaa81b3bc09fc4f3728b7370ec:949:17
withoutInvocation/<@http://localhost:3000/packages/meteor.js?81e2f06cff198adaa81b3bc09fc4f3728b7370ec:434:26
Meteor.bindEnvironment/<@http://localhost:3000/packages/meteor.js?81e2f06cff198adaa81b3bc09fc4f3728b7370ec:977:17
onGlobalMessage@http://localhost:3000/packages/meteor.js?81e2f06cff198adaa81b3bc09fc4f3728b7370ec:371:11
" meteor.js:887

These are the packages I have installed:
meteor-platform
iron:router
accounts-ui
accounts-password
email
twbs:bootstrap
ian:bootstrap-3-theme
vsivsi:job-collection

profile.name appears to be the username field?

Hi Ian,

I found by trial and error that when edit profile is enabled the logged-in user name is being taken from the current logged in field profile.name rather than username (as suggested by the official meteor docs). Can you explain why that is?

Many thanks

Steve

adding localization file doesn't work.

I tried to add Chinese. by creating a file "zh.i18n.js" similar the one you have in your i18n folder. But it complains about i18n being not defined in i18n.map(...). And then I change that to accountsUIBootstrap3.map(...) according to your README and it is not defined either.

I set accountsUIBootstrap3.setLanguage("zh") in the client startup function.

So what is the correct way to do it? Thanks.

Translation problem

Hi,
I'm a Spanish developer and I'm using this fantastic package, but I found a translation that doesn't seem to be correct :

usernameOrEmail: "Usuario o contraseña" should be "Usuario o correo electrónico"

I've corrected it using the map function. Hope this help.

Crash when password (again) field gets focus in Safari

application crashes when password (again) field gets focus.
To reproduce use Safari:

  • click the Sign in / up link
  • click the username field
  • click the create account link
  • click the password (again) field

environment:
Safari 7.1
meteor 1.0.3.1
accounts-password 1.0.6 Password support for accounts
autopublish 1.0.2 Publish the entire database to all clients
ian:accounts-ui-bootstrap-3 1.2.30 Bootstrap-styled accounts-ui with multi-language support.
insecure 1.0.2 Allow all database writes by default
meteor-platform 1.2.1 Include a standard set of Meteor packages in your app
twbs:bootstrap 3.3.2 Bootstrap (official): the most popular HTML/CSS/JS framework for r...

Blank Meteor Response After Install

As soon as I meteor add ian/accounts-ui-bootstrap-3, assuming that is this project, meteor will only show me a blank page and these errors. Is this due to an error on my part? I have essentially a bare-bones fresh meteor project with no code changes.

Uncaught Error: There are multiple templates named '_loginButtonsLoggedIn'. Each template needs a unique name.
Uncaught TypeError: Cannot read property 'accountsUIBootstrap3' of undefined

Output of install

srair:humans reustle$ meteor add ian:accounts-ui-bootstrap-3

Changes to your project's package version selections:

anti:i18n                    added, version 0.4.3
handlebars                   added, version 1.0.2
ian:accounts-ui-bootstrap-3  added, version 1.2.8
stylus                       added, version 1.0.6
twbs:bootstrap               added, version 3.3.1


ian:accounts-ui-bootstrap-3: Bootstrap-styled accounts-ui with multi-language support.

I am doing this on a boilerplate demo app (no JS modifications yet, and html page is hello world). Here are my installed packages and versions

accounts-password   1.0.5  Password support for accounts
accounts-ui         1.1.4  Simple templates to add login widgets to an app
autopublish         1.0.2  Publish the entire database to all clients
insecure            1.0.2  Allow all database writes by default
meteor-platform     1.2.1  Include a standard set of Meteor packages in your app
mizzao:bootstrap-3  3.3.1_1  HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.

Any insight is appreciated!

no user feedback when failing to login through oauth option when already having password account

more of a UX issue than a bug, but I think the appropriate UX change is clear

  1. create an email/password based account
  2. log out
  3. select an oauth option to sign-in with (say google login)
  4. sign-in with an account that shares the same email as used in step 1 (simulating a user having forgot which account creation method they had used)

The drop-down provides the feedback "Email already exists"... this is fine except the problem is that the drop-down is closed as soon as the oauth modal pops up, so to the user the login just silently failed.

I think the dropdown should either stay open until successful login occurs or it should pop back up if the login fails

don't auto closed when I click any link out of "UI"?

The first time I click on ui, it show for type the user name and password, but i don't type any thing and i move mouse pointer to click any link out of the ui, so ui should be closed auto (but don't).
It is OK (close) if I click it again.
pl help me why?

Meteor Accounts.ui.config not working with Google

I am simply trying to log in with Google and get the permissions for Calendar, etc. However, my code in the client only prompts user signing in for offline access. Why is it not asking for the calendars, etc.? Also, it is not forcing the approval prompt. I'm using ian:accounts-ui-bootstrap-3

Accounts.ui.config({
    requestPermissions: {
        google: 
        ['https://www.googleapis.com/auth/calendar',
        'https://www.googleapis.com/auth/calendar.readonly',
        'https://www.googleapis.com/auth/userinfo.profile',
        'https://www.googleapis.com/auth/userinfo.email',
        'https://www.googleapis.com/auth/tasks'], 
        forceApprovalPrompt: true
    }, 
    forceApprovalPrompt: {google: true},
    requestOfflineToken: {google: true},
    passwordSignupFields: 'EMAIL_ONLY',
    extraSignupFields: []
});

http://stackoverflow.com/questions/27468270/meteor-accounts-ui-config-not-working-with-google

Problem logging in with Facebook

Hi Ian,

Apologies for troubling you again. I have tried to follow your advice here with the following steps:

  1. meteor add accounts-facebook
  2. Set up app in Facebook
  3. Selected Sign in/up
  4. Selected Configure Facebook, entered details (App ID and App Secret) in the popup window and then clicked Save Configuration
  5. Selected Sign in/up
  6. Selected Sign in with Facebook

The end point of this is a blank popup window with the following url:

http://localhost:3000/_oauth/facebook?close&code=AQBQvYgn...very long code

I also set my config as follows:

Accounts.ui.config({
  requestPermissions: {
    facebook: ['email', 'public_profile', 'user_friends']
  },
  passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL'
});

I have tried this on three browsers (Chrome, Safari and IE) with the same result.

Best wishes

Steve

Cannot see all labels in mobile webpage looking

screenshot_2015-02-02_1248.
I have test in two mobiles.
Windows Phone 8.1 Allows to pinch and slide to see all labels.
Android (Unknown version) does not allow to pinch and slide. It is not possible to access to all labels. Screenshot one is in Android system.

errorMessage() for extraSignupFields validation

I've added a few extra fields using extraSignupFields.
In Accounts.validateNewUser() I do some validation on these extra fields.
If a field is invalid, I return false from validateNewUser().
This works, but what I would like to do is to show a message in the signup dialog, explaining what's wrong.
How can my app use the equivalent of Accounts.loginButtonsSession.errorMessage('Thou shall enter a value') ?

new Bootstrap Icons (v.3.3.2.)

Hy,

First of all great job with this package! Works well. Just a question. It seems there are new icons in bootstrap as of v3.3.2. (for example: glyphicon glyphicon-apple, glyphicon glyphicon-hourglass). I tried to overwrite the fonts, but I can't make them work. Any upgrade on this matter in the near future?

Incorrect Russian translation

Thanks for introducing i18n support that saved me a lot of time. It works fine as far as I can see but there's one wrong translation. This block should look like that:

justVerifiedEmailDialog: {
    verified: "Email подтвержден",
    dismiss: "Закрыть"
}

Hopefully you'll be able to include this into the next package release.

App no longer works after install

Installing this package seems to prevent my app from working (all content disappears from browser). I added accounts-password, accounts-ui and this package and checked after each install. If I remove this package, the app works fine again.

Exception from Tracker afterFlush function: undefined is not a function

I have the same issue as already opened/closed (cf. #15) but am not using any jquery external lib.

The packages am using are the following :

meteor-platform
insecure
iron:router
less
nemo64:bootstrap
houston:admin
matteodem:easy-search
rdewolff:temple-admintool
ian:accounts-ui-bootstrap-3
dburles:mongo-collection-instances

Any idea? Need more info?

Issue with _loginButtonsLoggedIn & global code

I added accounts-ui-bootstrap-3 with following command:

$ meteor add ian:accounts-ui-bootstrap-3
  added anti:i18n at version 0.4.3            
  added handlebars at version 1.0.1           
  added ian:accounts-ui-bootstrap-3 at version 1.1.26
  added stylus at version 1.0.5               

ian:accounts-ui-bootstrap-3: Bootstrap-styled accounts-ui with multi-language support.

And got following errors in console:

[Error] Error: There are multiple templates named '_loginButtonsLoggedIn'. Each template needs a unique name.   (anonymous function) (templating.js, line 59)

[Error] TypeError: undefined is not an object (evaluating 'Package['ian:accounts-ui-bootstrap-3'].accountsUIBootstrap3') global code (global-imports.js, line 3)

I have to remove the package in order to be able to see the website. I don't think it's working for current meteor verskion

Hi, i get a load error for the ko i18n

Should line 1 in ko.i18n.js

accountsUIBootstrap3.map

not start with

i18n.map

like in all the other i18n files?

EDIT: At the moment this leads to an error because of the package load order! (accountsUIBootstrap3 is not defined)

Exception while invoking method 'createUser'

I have a problem when trying to create an account using accounts-password. If I use the usual accounts-ui or accounts-facebook everything works just fine. Removing accounts-ui and adding ian:accounts-ui-bootstrap-3 will trigger an error on the server:

Exception while invoking method 'createUser' TypeError: Cannot read property 'id' of undefined
  at app/server/accounts.js:3:84
  at Object.Accounts.insertUserDoc (packages/accounts-base/accounts_server.js:1024:1)
  at createUser (packages/accounts-password/password_server.js:693:1)
  at packages/accounts-password/password_server.js:713:1
  at tryLoginMethod (packages/accounts-base/accounts_server.js:186:1)
  at Object.Accounts._loginMethod (packages/accounts-base/accounts_server.js:302:1)
  at [object Object].Meteor.methods.createUser (packages/accounts-password/password_server.js:699:1)
  at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1599:1)
  at packages/ddp/livedata_server.js:648:1
  at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)

On the client side I get a Internal server error.

Here is my list of packages:

accounts-base                  1.1.3 
accounts-facebook              1.0.3 
accounts-password              1.0.6 
alanning:roles                 1.2.13  
aldeed:collection2             2.3.2 
aldeed:simple-schema           1.3.0 
fourseven:scss                 2.0.0_1 
ian:accounts-ui-bootstrap-3    1.2.33 
iron:router                    1.0.7 
matb33:collection-hooks        0.7.9 
meteor-platform                1.2.1 
meteorhacks:subs-manager       1.3.0  
mquandalle:jade                0.4.1 
multiply:iron-router-progress  1.0.1
reywood:publish-composite      1.3.5
sacha:spin                     2.0.4
twbs:bootstrap                 3.3.2

Configure Modal Isn't 100% Wide

The configuration modals are not displaying 100% (see screenshot 1). I was able to fix it by disabling the 2nd and 3rd styles in screenshot 2. Seeing that these styles exist in the first place, is this intentional?

accounts-ui

accounts-ui-styles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.