Commit da6c5cfc158cfd471f970e663d3091e013a18c8b

Authored by Dylan Guedes
1 parent bbaa2dd9
Exists in signup_page

Fixes the post request, using the 2nd parameter as string instead of object.

Signed-off-by: DylanGuedes <djmgguedes@gmail.com>
Signed-off-by: Omar Junior <omarroinuj@gmail.com>
src/app/account/register.component.ts
@@ -11,11 +11,8 @@ export class RegisterComponent { @@ -11,11 +11,8 @@ export class RegisterComponent {
11 11
12 signup (account: any) { 12 signup (account: any) {
13 if (account.password === account.passwordConfirmation) { 13 if (account.password === account.passwordConfirmation) {
14 - this.$http.post("http://localhost:3000/api/v1/register", {  
15 - "login": account.login,  
16 - "email": account.email,  
17 - "password": account.password  
18 - }).then((response) => { 14 + this.$http.post("http://localhost:3000/api/v1/register", "login="+account.login+"&email="+account.email+"&password="+account.password).then((response) => {
  15 + console.log("User " + account.login + " created, please activate your account.");
19 console.log(response); 16 console.log(response);
20 }); 17 });
21 } else { 18 } else {
src/app/account/scss/register-component.scss
1 .register-page button { 1 .register-page button {
2 width: 100%; 2 width: 100%;
3 text-transform: uppercase; 3 text-transform: uppercase;
  4 + font-weight: 600;
4 } 5 }
5 6
6 .register-page .light-text { 7 .register-page .light-text {
@@ -31,3 +32,7 @@ @@ -31,3 +32,7 @@
31 .register-page .register-field { 32 .register-page .register-field {
32 margin-bottom: 25px; 33 margin-bottom: 25px;
33 } 34 }
  35 +
  36 +.register-page input:focus {
  37 + border: 2px solid #bbb;
  38 +}