Browse Source

Added config to hide email if disabled

master
Teknikode 7 years ago
parent
commit
35e22b8caf
  1. 5
      Teknik/Areas/Profile/Controllers/ProfileController.cs

5
Teknik/Areas/Profile/Controllers/ProfileController.cs

@ -46,7 +46,10 @@ namespace Teknik.Areas.Profile.Controllers @@ -46,7 +46,10 @@ namespace Teknik.Areas.Profile.Controllers
model.UserID = user.UserId;
model.Username = user.Username;
model.Email = string.Format("{0}@{1}", user.Username, Config.EmailConfig.Domain);
if (Config.EmailConfig.Enabled)
{
model.Email = string.Format("{0}@{1}", user.Username, Config.EmailConfig.Domain);
}
model.JoinDate = user.JoinDate;
model.LastSeen = user.LastSeen;

Loading…
Cancel
Save