大佬教程收集整理的这篇文章主要介绍了node.js – 在登录屏幕中禁用stormpath的Create account选项,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
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 }));@H_489_8@谢谢!
这是你需要做的:
>重命名stormpathEnableRegistration – > enableRegistration.
>更新到库的最新版本.
我刚推送了最新版本中的更改,该更改在禁用此设置时修复了登录页面上的呈现问题.过去发生的事情是这样的:
>你将禁用注册.
>注册页面无效.
>但登录页面仍会呈现“创建帐户”链接.
在最新版本中,这是固定的=)
更新:由于express-stormpath的2.x.x版本现已发布,因此上述信息不再有效.相反,你应该这样做:
app.use(stormpath.init(app,{ client: { apiKey: { file: config.stormpathapi.apiKeyFile } },application: { href: config.stormpathapi.application },web: { register: { enabled: false } } }));@H_489_8@这将禁用您的注册功能=)
以上是大佬教程为你收集整理的node.js – 在登录屏幕中禁用stormpath的Create account选项全部内容,希望文章能够帮你解决node.js – 在登录屏幕中禁用stormpath的Create account选项所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。