This commit is contained in:
parent
d81c0f5a26
commit
e4a320fe9d
|
@ -123,12 +123,12 @@
|
||||||
</p>
|
</p>
|
||||||
<p>O login na app é feito usando esse QR code</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>
|
<p>Para obteres a password, deves efectuar reset através da APP, ou preenchendo o campo a baixo.</p>
|
||||||
<form action="http://localhost:5000/api/reset" method="GET">
|
|
||||||
|
|
||||||
<input type="email" name="email" placeholder="Introduz o teu email">
|
|
||||||
|
<input id="email-input" type="email" name="email" placeholder="Introduz o teu email">
|
||||||
<input type="submit" value="RESET PASSWOR">
|
|
||||||
</form>
|
<button class="button-default" onclick="resetPassword()">Reset Password</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -376,7 +376,66 @@
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
<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>
|
<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/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 -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130588243-1"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -385,13 +444,6 @@
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
gtag('config', 'UA-130588243-1');
|
gtag('config', 'UA-130588243-1');
|
||||||
</script>
|
</script>
|
||||||
<script>
|
|
||||||
|
|
||||||
resetPassword = () => {
|
|
||||||
console.log("asdasd")
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<script>
|
<script>
|
||||||
AOS.init();
|
AOS.init();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
<link href="bootstrap-grid.css" rel="stylesheet" type="text/css" />
|
<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://enei.pt/main.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="https://fonts.googleapis.com/css?family=Bai+Jamjuree:400,600,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Bai+Jamjuree:400,600,700" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
|
||||||
|
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
html{
|
html{
|
||||||
|
@ -35,11 +38,11 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: url("https://enei.pt/imgs/coimbra-image.jpg") no-repeat center;
|
background-image: linear-gradient(0deg, rgba(208, 46, 44, 1) 20%, rgb(225, 73, 78) 100%);
|
||||||
}
|
}
|
||||||
.resetPassword{
|
.resetPassword{
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background-color:#CC1A17;
|
// background-color:#CC1A17;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|
||||||
|
@ -48,41 +51,45 @@ background: url("https://enei.pt/imgs/coimbra-image.jpg") no-repeat center;
|
||||||
|
|
||||||
}
|
}
|
||||||
h1,h3{
|
h1,h3{
|
||||||
color: white;
|
color:black;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
.button-reset{
|
||||||
|
margin: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header id="main-menu">
|
|
||||||
<nav>
|
|
||||||
<a href="#" title="Abrir menu" rel="nofollow" id="open-menu-mobile">Menu</a>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#enei" title="Enei">Enei</a></li>
|
|
||||||
<li class="unavailable">Career Path</li>
|
|
||||||
<li class="unavailable">Programa</li>
|
|
||||||
<li class="unavailable">Oradores</li>
|
|
||||||
<li><a href="#precos" title="Preços">Preços</a></li>
|
|
||||||
<li class="unavailable">App</li>
|
|
||||||
<li><a href="#sponsors" title="Sponsors">Sponsors</a></li>
|
|
||||||
<li><a href="#faqs" title="Faq's">Faq's</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
<div class="resetPassword">
|
|
||||||
<h1>ERRO</h1>
|
|
||||||
<h3>Existiu um erro a enviar a password de recuperação...</h3>
|
|
||||||
<h3>Este código já foi usado para recuperar a password.</h3>
|
|
||||||
|
|
||||||
<a href="https://enei.pt/app"><button class="button-default">Reset Password Again</button></a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="download-app">
|
||||||
|
<div class="left">
|
||||||
|
<h1>Erro!!</h1>
|
||||||
|
<h3>Este código de recuperação não existe, ou já foi utilizado...</h3>
|
||||||
|
<h3>Volta a realizar o processo! Caso o erro persista, contacta a comissão.</h3>
|
||||||
|
<div class="buttons">
|
||||||
|
<a href="https://enei.pt/app">
|
||||||
|
<div class="button-app">
|
||||||
|
|
||||||
|
<div class="button-text">
|
||||||
|
<h3>Ir para</h3>
|
||||||
|
<h2>Página da APP</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
|
|
|
@ -26,34 +26,83 @@
|
||||||
<meta property="og:type" content="Website" />
|
<meta property="og:type" content="Website" />
|
||||||
<link rel="canonical" href="http://www.enei.pt/error-page.html" />
|
<link rel="canonical" href="http://www.enei.pt/error-page.html" />
|
||||||
<link href="bootstrap-grid.css" rel="stylesheet" type="text/css" />
|
<link href="bootstrap-grid.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="main.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">
|
<link href="https://fonts.googleapis.com/css?family=Bai+Jamjuree:400,600,700" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
|
||||||
|
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100%;
|
||||||
|
background-image: linear-gradient(0deg, rgba(208, 46, 44, 1) 20%, rgb(225, 73, 78) 100%);
|
||||||
|
}
|
||||||
|
.resetPassword{
|
||||||
|
margin: 0 auto;
|
||||||
|
// background-color:#CC1A17;
|
||||||
|
text-align: center;
|
||||||
|
width: 50%;
|
||||||
|
|
||||||
|
padding: 40px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
h1,h3{
|
||||||
|
color:black;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.button-reset{
|
||||||
|
margin: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header id="main-menu">
|
|
||||||
<nav>
|
|
||||||
<a href="#" title="Abrir menu" rel="nofollow" id="open-menu-mobile">Menu</a>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#enei" title="Enei">Enei</a></li>
|
|
||||||
<li class="unavailable">Career Path</li>
|
|
||||||
<li class="unavailable">Programa</li>
|
|
||||||
<li class="unavailable">Oradores</li>
|
|
||||||
<li><a href="#precos" title="Preços">Preços</a></li>
|
|
||||||
<li class="unavailable">App</li>
|
|
||||||
<li><a href="#sponsors" title="Sponsors">Sponsors</a></li>
|
|
||||||
<li><a href="#faqs" title="Faq's">Faq's</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
<!-- apresentation section -->
|
|
||||||
<div id="apresentation">
|
|
||||||
<h1 id="error-message">Enviado para o email</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="download-app">
|
||||||
|
<div class="left">
|
||||||
|
<h1>Sucesso!!</h1>
|
||||||
|
<h3>Dentro de alguns minutos irás receber a nova password.</h3>
|
||||||
|
<h3>Podes aproveitar a espera para fazer o download.</h3>
|
||||||
|
<div class="buttons">
|
||||||
|
<a href="https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1457702417&mt=8">
|
||||||
|
<div class="button-app">
|
||||||
|
<div class="button-logo">
|
||||||
|
<i class="fab fa-apple"></i>
|
||||||
|
</div>
|
||||||
|
<div class="button-text">
|
||||||
|
<h3>Available on the</h3>
|
||||||
|
<h2>App Store</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<a href="https://play.google.com/store/apps/details?id=pt.enei">
|
||||||
|
<div class="button-app">
|
||||||
|
<div class="button-logo">
|
||||||
|
<i class="fab fa-google-play"></i>
|
||||||
|
</div>
|
||||||
|
<div class="button-text">
|
||||||
|
<h3>Available on the</h3>
|
||||||
|
<h2>Play Store</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
|
|
Loading…
Reference in New Issue