我想在stormpath登录屏幕中禁用创建帐户。对 api 的调用应该已经从通过应用程序身份验证的用户发出。我尝试将stormpathEnableRegistration 设置为false,但注册功能仍处于启用状态。
app.use(stormpath.init(app, {
apiKeyFile: config.stormpathapi.apiKeyFile,
application: config.stormpathapi.application,
secretKey: config.stormpathapi.secretKey,
sessionDuration: 1000 * 60 * 30,
enableAutoLogin: true,
enableUsername: true,
stormpathEnableRegistration: false
}));
谢谢!