Browse Source

Added config to hide email if disabled

tags/2.0.3
Teknikode 4 years ago
parent
commit
35e22b8caf
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Teknik/Areas/Profile/Controllers/ProfileController.cs

+ 4
- 1
Teknik/Areas/Profile/Controllers/ProfileController.cs View File

@@ -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