I have configured 2x Users in rpcd file as below. My goal is to display the currently logged username into Luci WebUi. I checked the luci_username field used for getting input during the login and it is available in sysauth.htm and dispatch.lua files. But i am not sure about How to retrieve it and display on the WebUi. Could somebody help on this ?
config rpcd
option socket /var/run/ubus.sock
option timeout 30
config login
option username 'admin'
option password '$p$admin'
list read '*'
list write '*'
config login
option username 'engineer'
option password '$p$engineer'
list read '*'
list write '*'