@ -26,6 +26,7 @@ using Microsoft.AspNetCore.Http;
@@ -26,6 +26,7 @@ using Microsoft.AspNetCore.Http;
usingSystem.Security.Claims;
usingMicrosoft.AspNetCore.Authentication.Cookies;
usingTeknik.MailService;
usingTeknik.GitService;
namespaceTeknik.Areas.Users.Utility
{
@ -931,15 +932,22 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -931,15 +932,22 @@ If you recieved this email and you did not reset your password, you can ignore t
@ -947,12 +955,12 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -947,12 +955,12 @@ If you recieved this email and you did not reset your password, you can ignore t
if(config.EmailConfig.Enabled)
{
varsvc=CreateMailService(config);
svc.EditActivity(email,active);
svc.DisableAccount(email);
}
}
catch(Exceptionex)
{
thrownewException("Unable to edit email account status.",ex);
thrownewException("Unable to disable email account.",ex);
}
}
@ -1015,7 +1023,7 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1015,7 +1023,7 @@ If you recieved this email and you did not reset your password, you can ignore t
if(config.EmailConfig.Enabled)
{
varsvc=CreateMailService(config);
svc.Delete(email);
svc.DeleteAccount(email);
}
}
catch(Exceptionex)
@ -1026,22 +1034,28 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1026,22 +1034,28 @@ If you recieved this email and you did not reset your password, you can ignore t
@ -1061,27 +1075,11 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1061,27 +1075,11 @@ If you recieved this email and you did not reset your password, you can ignore t
@ -1094,16 +1092,9 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1094,16 +1092,9 @@ If you recieved this email and you did not reset your password, you can ignore t
@ -1126,15 +1117,9 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1126,15 +1117,9 @@ If you recieved this email and you did not reset your password, you can ignore t
@ -1145,15 +1130,30 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1145,15 +1130,30 @@ If you recieved this email and you did not reset your password, you can ignore t
@ -1167,20 +1167,37 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1167,20 +1167,37 @@ If you recieved this email and you did not reset your password, you can ignore t
}
stringemail=GetUserEmailAddress(config,username);
using(varclient=newWebClient())
varsvc=CreateGitService(config);
svc.EnableAccount(username,email);
}
}
catch(Exceptionex)
{
thrownewException("Unable to disable git account.",ex);
thrownewException($"Git User '{username}' does not exist.");
}
varsvc=CreateGitService(config);
svc.DeleteAccount(username);
}
}
catch(Exceptionex)
{
thrownewException("Unable to edit git account password.",ex);
thrownewException("Unable to delete git account.",ex);
}
}
@ -1283,48 +1300,6 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1283,48 +1300,6 @@ If you recieved this email and you did not reset your password, you can ignore t
thrownewException("Unable to delete git account two factor.",ex);
@ -1349,46 +1324,6 @@ If you recieved this email and you did not reset your password, you can ignore t
@@ -1349,46 +1324,6 @@ If you recieved this email and you did not reset your password, you can ignore t
<input class="form-control" name="title" id="title" placeholder="Collection of items" title="enter a title for your vault." type="text" value="@Model.title" />
<textarea class="form-control mdd_editor" name="description" id="description" placeholder="This is a cool collection of uploads and pastes" title="enter the description for this vault" data-provide="markdown" rows="5">@Model.description</textarea>
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">Description</div>
<div class="panel-body">
<div class="mdd_toolbar"></div>
<textarea class="form-control mdd_editor" name="description" id="description" placeholder="This is a cool collection of uploads and pastes" title="enter the description for this vault" data-provide="markdown" rows="5">@Model.description</textarea>