cooperlyt / keycloak-phone-provider

A Keycloak provider for phone and SMS
MIT License
252 stars 147 forks source link

Changing the labels on UI #100

Open abhijeet-qure opened 4 months ago

abhijeet-qure commented 4 months ago

@cooperlyt I want to change some labels and SMS text.

I have tried changing labels as mentioned in this file keycloak-phone-provider.resources/src/main/resources/theme/phone/login/messages/messages_en.properties Specifically, i have changed only 2 fields loginByPassword and smsCodeMessage

CleanShot 2024-03-07 at 22 26 14@2x

and built the project and its docker as follows

cd keycloak-phone-provider // on root dir of the project 
mvn clean package
cd targete 
./build-template.sh test

CleanShot 2024-03-07 at 19 38 29@2x CleanShot 2024-03-07 at 19 39 21@2x


When I start docker with this updated image, it does not show the updated text on UI.

CleanShot 2024-03-07 at 22 27 06@2x

What am i missing here?

abhijeet-qure commented 4 months ago

I was able to go through the UI label change, i had mounted providers directory where i was trying to modify themes. By changing it there, i was able to solve UI label issue

Now, I am stuck at changing smsCodeMessage. I made the necessary changes in the themes folder and also in realm settings -> localization, but I have not received the proper message that I configured.

After digging into the codebase, i trying to sense, there seems to be some issue with getting the session or user locale before converting SMS message, line number is this

Can someone help? if they tried changing the SMS code message in some way

abhijeet-qure commented 3 months ago

@cooperlyt Sending reminder to check this issue