bugnet
bugnet copied to clipboard
Welcome message should update after successful login
After I login the Welcome message should ideally get updated. Currently it is not and using the same resource key. This is how we can do this:
- Create a new key-value in
BugNet_HostSettingtable. Key could be something like "WelcomeMessageUser". The record could be added in the installation procedure as well by adding a newSQL INSERTinsideBugNet.Data.SqlDataProvider.Sqlfile. - Create a new key named
WelcomeMessageUserinHostSettingNames.csenum. - In default.aspx.cs inside else part we can update the value of
WelcomeMessagelabel
if (!Context.User.Identity.IsAuthenticated){
... ...
}
else{
WelcomeMessage.Text = HostSettingManager.Get(HostSettingNames.WelcomeMessageUser);
... ...
}
Please let me know what you think.