How to avoid default user id and password from user login screen ?

How to avoid default user id and password from user login screen ?
I don’t want to show the default user id ( admin ) and password in login screen. It should be blank.
How it is possible ?

2 Likes

Hi,
You should set properties cuba.web.loginDialogDefaultUser and cuba.web.loginDialogDefaultPassword to as it is described in the documentation.

1 Like

Where should I put cuba.web.loginDialogDefaultUser and cuba.web.loginDialogDefaultPassword?
I have tried in Catalina/conf/app-core/local.app.properties. No effect.

Go to modules\web\src , then edit web-app.properties , change the following lines

cuba.web.loginDialogDefaultUser=

cuba.web.loginDialogDefaultPassword=

When working with application properties, please follow recommendations given in this section: https://doc.cuba-platform.com/manual-6.2/app_properties.html

I used to have this settings set for “war build” in “deployment settings” under cuba studio, so this properties would only set when a “war buid” was done (see screenshot attached)


['cuba.automaticDatabaseUpdate' : true,
'cuba.web.loginDialogDefaultUser':'',
'cuba.web.loginDialogDefaultPassword':'',
'cuba.web.productionMode':true
]

since platform version 6.6.0, apparently even though this setting are still there, I’m still getting the default user admin and password when deploying the war into a tomcat server.

Screenshot 2017-08-01 11.00.59

2 Likes

According to the docs you should use


cuba.web.loginDialogDefaultUser = <disabled>
cuba.web.loginDialogDefaultPassword = <disabled>
1 Like