This commit is contained in:
parent
acc8b17bab
commit
d0dd3b9358
|
@ -102,8 +102,8 @@ android {
|
|||
applicationId "pt.enei"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 3
|
||||
versionName "3"
|
||||
versionCode 4
|
||||
versionName "4"
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a", "x86"
|
||||
}
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.1</string>
|
||||
<string>1.2</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>12</string>
|
||||
<string>13</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string></string>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace api.Controllers
|
|||
private readonly RoleManager<Role> _roleManager;
|
||||
private readonly System.Net.Http.IHttpClientFactory clientFactory;
|
||||
|
||||
public AuthController(DataContext context,IConfiguration config, UserManager<User> UserManager, SignInManager<User> SignInManager, IMapper mapper, RoleManager<Role> roleManager, IUsersRepository repo, System.Net.Http.IHttpClientFactory clientFactory)
|
||||
public AuthController(DataContext context, IConfiguration config, UserManager<User> UserManager, SignInManager<User> SignInManager, IMapper mapper, RoleManager<Role> roleManager, IUsersRepository repo, System.Net.Http.IHttpClientFactory clientFactory)
|
||||
{
|
||||
_mapper = mapper;
|
||||
_roleManager = roleManager;
|
||||
|
@ -62,6 +62,9 @@ namespace api.Controllers
|
|||
return BadRequest(result.Errors);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
[HttpPost("login")]
|
||||
public async Task<IActionResult> Login(UserForLoginDto UserForLoginDto)
|
||||
{
|
||||
|
@ -87,13 +90,15 @@ namespace api.Controllers
|
|||
}
|
||||
|
||||
[HttpPost("loginQR")]
|
||||
public async Task<IActionResult> loginQr(loginQr a){
|
||||
public async Task<IActionResult> loginQr(loginQr a)
|
||||
{
|
||||
|
||||
var u = await _userManager.FindByNameAsync(a.QRcode);
|
||||
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
try{
|
||||
try
|
||||
{
|
||||
|
||||
var url = "https://tickets.enei.pt/internal/api/Attendee/Detail";
|
||||
|
||||
|
@ -114,7 +119,9 @@ namespace api.Controllers
|
|||
token = GenerateJwtToken(appUser).Result
|
||||
});
|
||||
|
||||
}catch(Exception e){
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Console.WriteLine(e);
|
||||
|
||||
|
@ -138,8 +145,9 @@ namespace api.Controllers
|
|||
|
||||
var roles = await _userManager.GetRolesAsync(user);
|
||||
|
||||
foreach(var role in roles) {
|
||||
claims.Add(new Claim(ClaimTypes.Role,role));
|
||||
foreach (var role in roles)
|
||||
{
|
||||
claims.Add(new Claim(ClaimTypes.Role, role));
|
||||
}
|
||||
|
||||
//obtem a key na app settings
|
||||
|
|
|
@ -7,6 +7,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
using api.Dtos;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using api.Models;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace api.Controllers
|
||||
{
|
||||
|
@ -31,7 +32,36 @@ namespace api.Controllers
|
|||
|
||||
return View("Views/Landing/index.cshtml");
|
||||
}
|
||||
[AllowAnonymous]
|
||||
|
||||
[HttpGet("/reset/{user}")]
|
||||
public async Task<IActionResult> resetPassword(string user)
|
||||
{
|
||||
|
||||
string cenas = "Pua";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
try
|
||||
{
|
||||
var url = "https://tickets.enei.pt/internal/api/User/ResetPassword?code=" + user;
|
||||
|
||||
// client.DefaultRequestHeaders.Add("Authorization", "Bearer " + a.token);
|
||||
var response = await client.GetStringAsync(url);
|
||||
return Ok(user);
|
||||
return View("Views/Landing/resetPage.cshtml");
|
||||
}
|
||||
catch (HttpRequestException a)
|
||||
{
|
||||
|
||||
return View("Views/Landing/resetError.cshtml");
|
||||
// return NotFound(a);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
[HttpGet("/app")]
|
||||
[AllowAnonymous]
|
||||
public IActionResult appPage()
|
||||
|
@ -43,14 +73,20 @@ namespace api.Controllers
|
|||
|
||||
[HttpGet("/ctf")]
|
||||
[AllowAnonymous]
|
||||
public IActionResult ctfPage() {
|
||||
public IActionResult ctfPage()
|
||||
{
|
||||
|
||||
return View("Views/Landing/ctf.cshtml");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
[AllowAnonymous]
|
||||
[Route("{*url}", Order = 999)]
|
||||
public IActionResult CatchAll()
|
||||
{
|
||||
Response.StatusCode = 404;
|
||||
return View("Views/Landing/notFound.cshtml");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
namespace api.Dtos
|
||||
{
|
||||
public class reset
|
||||
{
|
||||
public string email { get; set; }
|
||||
}
|
||||
}
|
|
@ -123,10 +123,11 @@
|
|||
</p>
|
||||
<p>O login na app é feito usando esse QR code</p>
|
||||
<p>Para obteres a password, deves efectuar reset através da APP, ou preenchendo o campo a baixo.</p>
|
||||
<form>
|
||||
<form action="http://localhost:5000/api/reset" method="GET">
|
||||
|
||||
<input type="email" placeholder="Introduz o teu email">
|
||||
<input type="button" data-bind="click: buy" value="RESET PASSWORD">
|
||||
<input type="email" name="email" placeholder="Introduz o teu email">
|
||||
|
||||
<input type="submit" value="RESET PASSWOR">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -348,36 +349,30 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<!-- social network section -->
|
||||
<aside id="social-network">
|
||||
<!-- footer -->
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2>Segue-nos</h2>
|
||||
<ul>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<p>© 2019 ENEI . Todos os direitos reservados</p>
|
||||
</div>
|
||||
<div class="col-lg-8 col-xs-6">
|
||||
<ul id="social-network">
|
||||
<li><a href="https://www.facebook.com/ENEIConf/" title="Facebook" target="_blank"
|
||||
class="icon-facebook"></a></li>
|
||||
<li><a href="https://www.instagram.com/eneiconf/" title="Instagram" target="_blank"
|
||||
class="icon-instagram"></a></li>
|
||||
<li><a href="https://www.linkedin.com/company/enei/" title="Linkedin" target="_blank"
|
||||
class="icon-linkedin"></a></li>
|
||||
<li><a href="mailto:geral@enei.pt" title="Email" target="_blank" class="icon-email"></a></li>
|
||||
<li><a href="mailto:geral@enei.pt" title="Email" target="_blank" class="icon-email"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<!-- footer -->
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>© 2019 ENEI . Todos os direitos reservados</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="js/scripts.js"></script>
|
||||
|
@ -390,6 +385,13 @@
|
|||
gtag('js', new Date());
|
||||
gtag('config', 'UA-130588243-1');
|
||||
</script>
|
||||
<script>
|
||||
|
||||
resetPassword = () => {
|
||||
console.log("asdasd")
|
||||
}
|
||||
|
||||
</script>
|
||||
<script>
|
||||
AOS.init();
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt" xml:lang="pt">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta content="width=device-width, initial-scale=1, user-scalable=0" name="viewport">
|
||||
<meta content="width" name="MobileOptimized">
|
||||
<meta content="true" name="HandheldFriendly">
|
||||
<!-- Place favicon.ico in the root directory -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
|
||||
<link rel="manifest" href="site.webmanifest">
|
||||
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<title>ENEI'19 - Error</title>
|
||||
<meta name="description" content="Página do Encontro Nacional de Estudantes de Informática 2019, no Instituto Superior de Engenharia de Coimbra (ISEC) a realizar-se entre 12 e 15 de abril de 2019. O ENEI pretende oferecer aos estudantes de todo o país um evento que promove a aprendizagem, a troca de ideias e o convívio, enquanto tenta criar fortes ligações com o mundo empresarial.">
|
||||
<meta property="og:locale" content="pt_PT" />
|
||||
<meta property="og:title" content="ENEI'19 - Error" />
|
||||
<meta property="og:description" content="Página do Encontro Nacional de Estudantes de Informática 2019, no Instituto Superior de Engenharia de Coimbra (ISEC) a realizar-se entre 12 e 15 de abril de 2019. O ENEI pretende oferecer aos estudantes de todo o país um evento que promove a aprendizagem, a troca de ideias e o convívio, enquanto tenta criar fortes ligações com o mundo empresarial." />
|
||||
<meta property="og:site_name" content="ENEI'19 - Error" />
|
||||
<meta property="og:url" content="http://www.enei.pt/error-page.html" />
|
||||
<meta property="og:image" content="http://www.enei.pt/imgs/share-image.jpg" />
|
||||
<meta property="og:type" content="Website" />
|
||||
<link rel="canonical" href="http://www.enei.pt/error-page.html" />
|
||||
<link href="bootstrap-grid.css" rel="stylesheet" type="text/css" />
|
||||
<link href="main.css" rel="stylesheet" type="text/css" />
|
||||
<link href="https://fonts.googleapis.com/css?family=Bai+Jamjuree:400,600,700" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- apresentation section -->
|
||||
<div id="apresentation">
|
||||
<h1 id="error-message">404</h1>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="js/scripts.js"></script>
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src=“https://www.googletagmanager.com/gtag/js?id=UA-130588243-1“></script>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-130588243-1');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,76 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt" xml:lang="pt">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta content="width=device-width, initial-scale=1, user-scalable=0" name="viewport">
|
||||
<meta content="width" name="MobileOptimized">
|
||||
<meta content="true" name="HandheldFriendly">
|
||||
<!-- Place favicon.ico in the root directory -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
|
||||
<link rel="manifest" href="site.webmanifest">
|
||||
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<title>ENEI'19 - Error</title>
|
||||
<meta name="description" content="Página do Encontro Nacional de Estudantes de Informática 2019, no Instituto Superior de Engenharia de Coimbra (ISEC) a realizar-se entre 12 e 15 de abril de 2019. O ENEI pretende oferecer aos estudantes de todo o país um evento que promove a aprendizagem, a troca de ideias e o convívio, enquanto tenta criar fortes ligações com o mundo empresarial.">
|
||||
<meta property="og:locale" content="pt_PT" />
|
||||
<meta property="og:title" content="ENEI'19 - Error" />
|
||||
<meta property="og:description" content="Página do Encontro Nacional de Estudantes de Informática 2019, no Instituto Superior de Engenharia de Coimbra (ISEC) a realizar-se entre 12 e 15 de abril de 2019. O ENEI pretende oferecer aos estudantes de todo o país um evento que promove a aprendizagem, a troca de ideias e o convívio, enquanto tenta criar fortes ligações com o mundo empresarial." />
|
||||
<meta property="og:site_name" content="ENEI'19 - Error" />
|
||||
<meta property="og:url" content="http://www.enei.pt/error-page.html" />
|
||||
<meta property="og:image" content="http://www.enei.pt/imgs/share-image.jpg" />
|
||||
<meta property="og:type" content="Website" />
|
||||
<link rel="canonical" href="http://www.enei.pt/error-page.html" />
|
||||
<link href="bootstrap-grid.css" rel="stylesheet" type="text/css" />
|
||||
<link href="https://enei.pt/main.css" rel="stylesheet" type="text/css" />
|
||||
<link href="https://fonts.googleapis.com/css?family=Bai+Jamjuree:400,600,700" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
.resetPassword{
|
||||
margin: 0 auto;
|
||||
background-color: red;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
align-self: center;
|
||||
margin-top: 20%;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div class="resetPassword">
|
||||
<h1>ERRO</h1>
|
||||
<h3>Existiu um erro a enviar a password de recuperação</h3>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="js/scripts.js"></script>
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src=“https://www.googletagmanager.com/gtag/js?id=UA-130588243-1“></script>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-130588243-1');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt" xml:lang="pt">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta content="width=device-width, initial-scale=1, user-scalable=0" name="viewport">
|
||||
<meta content="width" name="MobileOptimized">
|
||||
<meta content="true" name="HandheldFriendly">
|
||||
<!-- Place favicon.ico in the root directory -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
|
||||
<link rel="manifest" href="site.webmanifest">
|
||||
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<title>ENEI'19 - Error</title>
|
||||
<meta name="description" content="Página do Encontro Nacional de Estudantes de Informática 2019, no Instituto Superior de Engenharia de Coimbra (ISEC) a realizar-se entre 12 e 15 de abril de 2019. O ENEI pretende oferecer aos estudantes de todo o país um evento que promove a aprendizagem, a troca de ideias e o convívio, enquanto tenta criar fortes ligações com o mundo empresarial.">
|
||||
<meta property="og:locale" content="pt_PT" />
|
||||
<meta property="og:title" content="ENEI'19 - Error" />
|
||||
<meta property="og:description" content="Página do Encontro Nacional de Estudantes de Informática 2019, no Instituto Superior de Engenharia de Coimbra (ISEC) a realizar-se entre 12 e 15 de abril de 2019. O ENEI pretende oferecer aos estudantes de todo o país um evento que promove a aprendizagem, a troca de ideias e o convívio, enquanto tenta criar fortes ligações com o mundo empresarial." />
|
||||
<meta property="og:site_name" content="ENEI'19 - Error" />
|
||||
<meta property="og:url" content="http://www.enei.pt/error-page.html" />
|
||||
<meta property="og:image" content="http://www.enei.pt/imgs/share-image.jpg" />
|
||||
<meta property="og:type" content="Website" />
|
||||
<link rel="canonical" href="http://www.enei.pt/error-page.html" />
|
||||
<link href="bootstrap-grid.css" rel="stylesheet" type="text/css" />
|
||||
<link href="main.css" rel="stylesheet" type="text/css" />
|
||||
<link href="https://fonts.googleapis.com/css?family=Bai+Jamjuree:400,600,700" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- apresentation section -->
|
||||
<div id="apresentation">
|
||||
<h1 id="error-message">Enviado para o email</h1>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="js/scripts.js"></script>
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src=“https://www.googletagmanager.com/gtag/js?id=UA-130588243-1“></script>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-130588243-1');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Binary file not shown.
Binary file not shown.
|
@ -123,11 +123,12 @@
|
|||
</p>
|
||||
<p>O login na app é feito usando esse QR code</p>
|
||||
<p>Para obteres a password, deves efectuar reset através da APP, ou preenchendo o campo a baixo.</p>
|
||||
<form>
|
||||
|
||||
<input type="email" placeholder="Introduz o teu email">
|
||||
<input type="button" data-bind="click: buy" value="RESET PASSWORD">
|
||||
</form>
|
||||
|
||||
<input id="email-input" type="email" name="email" placeholder="Introduz o teu email">
|
||||
|
||||
<button class="button-default" onclick="resetPassword()">Reset Password</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -348,40 +349,93 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<!-- social network section -->
|
||||
<aside id="social-network">
|
||||
<!-- footer -->
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2>Segue-nos</h2>
|
||||
<ul>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<p>© 2019 ENEI . Todos os direitos reservados</p>
|
||||
</div>
|
||||
<div class="col-lg-8 col-xs-6">
|
||||
<ul id="social-network">
|
||||
<li><a href="https://www.facebook.com/ENEIConf/" title="Facebook" target="_blank"
|
||||
class="icon-facebook"></a></li>
|
||||
<li><a href="https://www.instagram.com/eneiconf/" title="Instagram" target="_blank"
|
||||
class="icon-instagram"></a></li>
|
||||
<li><a href="https://www.linkedin.com/company/enei/" title="Linkedin" target="_blank"
|
||||
class="icon-linkedin"></a></li>
|
||||
<li><a href="mailto:geral@enei.pt" title="Email" target="_blank" class="icon-email"></a></li>
|
||||
<li><a href="mailto:geral@enei.pt" title="Email" target="_blank" class="icon-email"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<!-- footer -->
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>© 2019 ENEI . Todos os direitos reservados</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="js/scripts.js"></script>
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
||||
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
||||
|
||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
||||
<script>
|
||||
resetPassword = () => {
|
||||
|
||||
|
||||
var input = document.getElementById("email-input");
|
||||
|
||||
if (input != " ") {
|
||||
|
||||
console.log(input.value);
|
||||
|
||||
axios({
|
||||
url: `http://enei2019.uingress.com/internal/api/User/RecoverPassword?input=${input.value}&type=0`,
|
||||
method: 'get',
|
||||
|
||||
}).then(a => {
|
||||
console.log(a);
|
||||
Swal.fire(
|
||||
'Sucesso!',
|
||||
'Foi enviado para o teu email um pedido de recuperação. Pode demorar demorar alguns minutos...',
|
||||
'success'
|
||||
)
|
||||
}).catch(err => {
|
||||
if (err.response.status === 500) {
|
||||
Swal.fire(
|
||||
'Utilizador não existe!',
|
||||
'Verifica se o email é válido, caso o erro continue contacta a comissão organizadora',
|
||||
'error'
|
||||
)
|
||||
}
|
||||
else {
|
||||
Swal.fire(
|
||||
'Erro!',
|
||||
'Aconteceu algum erro com o teu pedido...',
|
||||
'error'
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
})
|
||||
} else {
|
||||
Swal.fire(
|
||||
'Erro!',
|
||||
'Deves preencher o campo de email.',
|
||||
'warning'
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/promise-polyfill"></script>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
||||
<script>
|
||||
|
|
|
@ -38,28 +38,9 @@
|
|||
<h1 id="error-message">404</h1>
|
||||
</div>
|
||||
|
||||
<!-- social network section -->
|
||||
<aside id="social-network">
|
||||
<div class="container">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2>Siga-nos</h2>
|
||||
<ul>
|
||||
<li><a href="https://www.facebook.com/ENEIConf/" title="Facebook" target="_blank" class="icon-facebook"></a></li>
|
||||
<li><a href="https://www.instagram.com/eneiconf/" title="Instagram" target="_blank" class="icon-instagram"></a></li>
|
||||
<li><a href="https://www.linkedin.com/company/enei/" title="Linkedin" target="_blank" class="icon-linkedin"></a></li>
|
||||
<li><a href="mailto:geral@enei.pt" title="Email" target="_blank" class="icon-email"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<!-- footer -->
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="col-lg-12">
|
||||
<p>© 2018 ENEI . Todos os direitos reservados</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
|
@ -67,12 +48,13 @@
|
|||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src=“https://www.googletagmanager.com/gtag/js?id=UA-130588243-1“></script>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag(‘js’, new Date());
|
||||
|
||||
gtag(‘config’, ‘UA-130588243-1’);
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-130588243-1');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -1860,6 +1860,23 @@ footer p {
|
|||
width: 60%;
|
||||
height: 60%;
|
||||
}
|
||||
.login-app .button-default {
|
||||
padding: 20px;
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
color: black;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
border: 1px solid #eeeeee;
|
||||
padding: 30px 30px;
|
||||
transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
|
||||
-webkit-transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
|
||||
}
|
||||
.login-app .button-default:hover {
|
||||
border-color: #cc1a17;
|
||||
background-color: #cc1a17;
|
||||
color: #ffffff;
|
||||
}
|
||||
@media screen and (max-width: 769px) {
|
||||
.login-app {
|
||||
flex-direction: column;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -405,6 +405,7 @@ input[type="submit"] {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
select {
|
||||
padding: 10px;
|
||||
border: 1px solid #eeeeee;
|
||||
|
@ -1786,6 +1787,26 @@ footer {
|
|||
width: 60%;
|
||||
height: 60%;
|
||||
}
|
||||
.button-default{
|
||||
padding: 20px;
|
||||
|
||||
//font-family: "Bai Jamjuree", sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
color: black;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
border: 1px solid #eeeeee;
|
||||
padding: 30px 30px;
|
||||
transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
|
||||
-webkit-transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
|
||||
|
||||
&:hover{
|
||||
border-color: #cc1a17;
|
||||
background-color: #cc1a17;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
background-image: url("./imgs/bg_phone.png");
|
||||
//border-bottom: 2px solid #cc1a17;
|
||||
|
||||
|
|
Loading…
Reference in New Issue