-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - added email templates to api project - added email configuration to appsettings - added send email after registering a user - added confirmation endpoint * created confirmation html page * cleanup * cleanup: remove jurnal medical refs from templates * cleanup * cleanup * added user api to dockerfile fix build * cleanup template * - remove identityserver project - add confirmation message after email is confirmed Co-authored-by: trupci <a.trupcea@moodmedia.com>
- Loading branch information
Showing
230 changed files
with
263 additions
and
57,173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Src/DeUrgenta.Api/EmailTemplates/accountConfirmationTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>Bine ai venit!</title> | ||
<style> | ||
</style> | ||
</head> | ||
<body class=""> | ||
<span ></span> | ||
<section> | ||
<div> | ||
<img alt="Code for Romania" src="" style="float: right" height="32"> | ||
<div style="clear:both;"></div> | ||
</div> | ||
</section> | ||
<span></span> | ||
<section> | ||
<p> | ||
Salut! | ||
</p> | ||
<p> | ||
Contul tău a fost creat, dar pentru a putea să te loghezi trebuie să confirmi contul tău apăsând pe <a href='%%confirmationLink%%'>acest link</a>. | ||
</p> | ||
<p> | ||
Îți mulțumim, | ||
<br /> | ||
Echipa De Urgenta | ||
</p> | ||
</section> | ||
</body> | ||
</html> |
28 changes: 28 additions & 0 deletions
28
Src/DeUrgenta.Api/EmailTemplates/resetPasswordTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>Bine ai venit!</title> | ||
<style> | ||
</style> | ||
</head> | ||
<body class=""> | ||
<span ></span> | ||
<section> | ||
<div> | ||
<img alt="Code for Romania" src="" style="float: right" height="32"> | ||
<div style="clear:both;"></div> | ||
</div> | ||
</section> | ||
<span></span> | ||
<section> | ||
<p> | ||
Salut! | ||
</p> | ||
<p> | ||
Pentru a-ți reseta parola apasă pe <a href='%%resetPasswordLink%%'>acest link</a>. | ||
</p> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft": "Warning", | ||
"Microsoft.Hosting.Lifetime": "Information" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"ConnectionStrings": { | ||
"DbConnectionString": "Server=localhost;Port=5432;Database=de-urgenta-db;User Id=docker;Password=docker;", | ||
"IdentityDbConnectionString": "Server=localhost;Port=5432;Database=de-urgenta-db;User Id=docker;Password=docker;" | ||
}, | ||
"JwtConfig": { | ||
"Secret": "llvudfvkwvepwkdnsnwmuulyvtrawppf", | ||
"TokenExpirationInSeconds": 3600 | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft": "Warning", | ||
"Microsoft.Hosting.Lifetime": "Information" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"ConnectionStrings": { | ||
"DbConnectionString": "Server=localhost;Port=5432;Database=de-urgenta-db;User Id=docker;Password=docker;", | ||
"IdentityDbConnectionString": "Server=localhost;Port=5432;Database=de-urgenta-db;User Id=docker;Password=docker;" | ||
}, | ||
"JwtConfig": { | ||
"Secret": "llvudfvkwvepwkdnsnwmuulyvtrawppf", | ||
"TokenExpirationInSeconds": 3600 | ||
}, | ||
"EMailingSystem": "SendGrid", | ||
"AdminFromName": "Echipa 'de urgenta'", | ||
"AdminFromEmail": "admin@deurgenta.ro", | ||
"ConfirmationUrl": "https://api.deurgenta.hostmysite.ro/confirmEmail.html", | ||
"Smtp": { | ||
"Host": "", | ||
"Port": 0, | ||
"User": "", | ||
"Password": "" | ||
}, | ||
"SendGrid": { | ||
"ApiKey": "", | ||
"ClickTracking": false | ||
}, | ||
"TemplateFolder": "EmailTemplates" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Confirmare adresa de email</title> | ||
</head> | ||
<body> | ||
<script> | ||
function callback(xhr) { | ||
if (xhr.status === 200) { | ||
document.getElementById('status').innerHTML = 'Adresa de mail a fost confirmata. Va puteti intoarce in aplicatie.'; | ||
} else { | ||
document.getElementById('status').innerHTML = 'Eroare.'; | ||
} | ||
} | ||
const urlParams = new URLSearchParams(window.location.search); | ||
const userId = urlParams.get('userId'); | ||
const code = urlParams.get('code'); | ||
|
||
var xhr = new XMLHttpRequest(); | ||
xhr.open("POST", "/auth/confirm"); | ||
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); | ||
xhr.onreadystatechange = function () { | ||
if (xhr.readyState === 4) { | ||
callback(xhr); | ||
} | ||
} | ||
xhr.send(JSON.stringify({ "userId": userId, "code": code })); | ||
|
||
</script> | ||
<div id="status"></div> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
Src/DeUrgenta.IdentityServer/Areas/Identity/Pages/Account/ConfirmEmail.cshtml
This file was deleted.
Oops, something went wrong.
100 changes: 0 additions & 100 deletions
100
Src/DeUrgenta.IdentityServer/Areas/Identity/Pages/Account/ConfirmEmail.cshtml.cs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
Src/DeUrgenta.IdentityServer/Areas/Identity/Pages/Account/ConfirmEmailChange.cshtml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.