Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Welcome message should update after successful login #229

Open
emfluenceindia opened this issue Nov 23, 2016 · 0 comments
Open

Welcome message should update after successful login #229

emfluenceindia opened this issue Nov 23, 2016 · 0 comments

Comments

@emfluenceindia
Copy link
Collaborator

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:

  1. Create a new key-value in BugNet_HostSetting table. Key could be something like "WelcomeMessageUser". The record could be added in the installation procedure as well by adding a new SQL INSERT inside BugNet.Data.SqlDataProvider.Sql file.
  2. Create a new key named WelcomeMessageUser in HostSettingNames.cs enum.
  3. In default.aspx.cs inside else part we can update the value of WelcomeMessage label
if (!Context.User.Identity.IsAuthenticated){
     ... ...
}
else{
     WelcomeMessage.Text = HostSettingManager.Get(HostSettingNames.WelcomeMessageUser);
     ... ...
}

Please let me know what you think.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant