ianmartorell / meteor-accounts-ui-bootstrap-3 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from erobit/meteor-accounts-ui-bootstrap-dropdown
accounts-ui package with Bootstrap 3 and localization support
This project forked from erobit/meteor-accounts-ui-bootstrap-dropdown
accounts-ui package with Bootstrap 3 and localization support
I have a {{> loginButtons}} in the navbar. And I have another one in the the bootstrap modal that shows up when I want to prompt the user to log in. However, the one in the modal always give email error even if I input the correct credential. If I remove the one in the navbar, then the one in the modal will work.
Is there any work around?
The drop down doesn't work when I use the {{> loginButtons}} in my template.
Hi there, very useful package!
It would be nice if clicking open the drop down would auto focus the first login input. Saving on mouse clicks and all that.
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
I love what you have here but how do I customize the registration flow? I would like have the user click the REGISTER button and fill out a more extensive signup form. I want to verify the users email also and perhaps have a subscription based signup option.
I try to include package locally cloning repository on METEOR_APP_HOME/packages/accounts-ui-b . Then I type on METEOR_APP_HOME "meteor add accounts-ui-b" but return:
=> Errors while parsing arguments:
While adding package accounts-ui-b:
error: no such package
If I do the same with this package it is working:
https://github.com/mangasocial/meteor-accounts-ui-bootstrap-3/
How to custom signup options with select box of gender (Male and Female)?
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.
Is it possible to override login dropdown/button text?
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.
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.
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.
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.
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
Reset password dialog displays a message that email was sent but no email was received.
Please update the version published on Atmosphere.js
more of a UX issue than a bug, but I think the appropriate UX change is clear
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
Is it possible to disable signup via override?
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
How to integrate t9n pcks like mrt:accounts-t9n ?
Is it possible to have it without the dropdown just a simple sign up box?
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?
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>
Currently on "Change password" view user can enter identical current password and new password and change it.
Hi Ian,
Apologies for troubling you again. I have tried to follow your advice here with the following steps:
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
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!
hi @ianmartorell , I was using Template._loginButtons.toggleDropDown() until yesterday when it started to fail, looking at the source now, i see it has been commented out. what is the new way to programmatically toggle the login dropdown/popup
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)
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.
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 ?
how to set fontawesome "user" icon before UI?
For: https://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/blob/master/accounts_ui.styl#L36
See here: http://getbootstrap.com/css/#less-mixins-vendor
Set the opacity for all browsers and provide a filter fallback for IE8.
.opacity(@opacity) {
opacity: @opacity;
// IE8 filter
@opacity-ie: (@opacity * 100);
filter: ~"alpha(opacity=@{opacity-ie})";
}
"Email sent" message appears in case user presses "#login-buttons-forgot-password" button while email field is empty.
So I can show an alert or sth. to the user that he/she needs to verify the email address.
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
I create new form to create new user by myself (When login).
But i don't want to change user login when create new (stay the old user account).
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') ?
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
So it can translate the verificationEmails
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
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?
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?
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)
the class col-sm-3 in login_buttons_dropdown.html makes the navbar expand in height if the dropdown expands (not under but in the navbar).
removing it seems to solve that.
J*
application crashes when password (again) field gets focus.
To reproduce use Safari:
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...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.