我的 OpenXava 应用程序中唯一可用的用户是“管理员”。我知道使用 XavaPro 我有一个完整的用户和角色管理系统用于我的 OpenXava 应用程序,但是 XavaPro 是一个商业产品。
我可以使用开源版本将其他用户添加到我的 OpenXava 应用程序吗?
是的你可以。转到项目中的“属性”文件夹。在那里您可以找到一个名为 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