我的OpenXava应用程序中唯一可用的用户是'admin‘。我知道使用XavaPro我的OpenXava应用程序有一个完整的用户和角色管理系统,但是XavaPro是一个商业产品。
我可以使用开放源码版本向我的OpenXava应用程序添加其他用户吗?
发布于 2021-04-28 00:38:51
可以,停那儿吧。转到项目中的文件夹“properties”。在那里,您可以找到一个名为naviox-users.properties的文件,其中包含以下内容:
# In plain OpenXava the users are added here in the form user=password
# If you want full management of users, roles and modules stored in database,
# get XavaPro from here: http://www.openxava.org/xavapro
admin=admin对其进行编辑,然后使用该对user=password添加您想要的所有用户,方法如下:
# In plain OpenXava the users are added here in the form user=password
# If you want full management of users, roles and modules stored in database,
# get XavaPro from here: http://www.openxava.org/xavapro
admin=admin
john=sjr3ji
juan=mso2rl
dorotea=mosoko您必须重新启动您的应用程序才能使其生效。
要了解有关OpenXava安全性和用户管理的更多信息,请访问:https://openxava.org/OpenXavaDoc/docs/security_en.html
https://stackoverflow.com/questions/67287205
复制相似问题