我想建立一个流星的web应用程序,将用户分配到不同的账户(公司)中。 account A
user 1 (of role X)
user 2 (of role X)
user 3 (of role Y)
是否有任何适合这些需求的模块/软件包设置,还是应该从头开始开发? 我想过使用alanning:角色,但我还没有测试他们的群组定义是否符合我对帐户功能的需求。 Th
我为我的应用程序创建了自定义身份验证。 我创建的活动登录和注销,它的工作原理,但我得到了浏览器控制台上的错误: Exception in delivering result of invoking 'login': ReferenceError: err is not defined 而且我的代码: Template.authMenu.events({
'submit .login-fo
我不知道为什么,我的流星应用程序中的注销按钮往往无法回拨。代码很简单: $scope.logout = function() {
Accounts.logout(function() {
// the code often fails to come here
$state.go('login');
});
}
也许网络的问题?所以我加了一些代码,
我使用Google recaptcha来授权用户不是机器人,这部分工作! :) 我用 Accounts.validateLoginAttempt((data) => {
if (someThingThatWillValidateTrueIfUserIsLoggedIn) {
return true // Will not run google Captcha security mess