是否可以在OpenXava免费版本中创建多个用户



OpenXava应用程序中唯一可用的用户是"admin"。我知道使用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=密码对添加所有你想要的用户,以这种方式:

# 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

最新更新