Skip to content

Commit

Permalink
Register bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-bowers committed Sep 7, 2022
1 parent c136056 commit a546df8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/app/register/register.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ input[type=password]{
margin-top: 20px;
}

a.button {
button {
font-size: 14px;
font-weight: 600;
color: white;
Expand All @@ -163,6 +163,7 @@ a.button {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: none;
background-color: rgb(219, 203, 253);
-webkit-box-shadow: 0 3px rgb(219, 203, 253);
-moz-box-shadow: 0 3px rgb(219, 203, 253);
Expand Down
3 changes: 2 additions & 1 deletion src/app/register/register.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ <h1>Registration</h1>
<input type="password" name = 'password' ngModel placeholder="Password">

<p>Already have a Squeaker account? Click <a href="/login">here</a> to return to the login page.</p>
<a href="/login" class="button" type="submit" (click)="saveSqueaker(gfg)">Register</a>
<button routerLink="/login" type="submit" (click)="saveSqueaker(gfg)">Register</button>
<!-- <a href="/login" class="button" type="submit" (click)="saveSqueaker(gfg)">Register</a>-->
</form>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/squeak.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export class SqueakService {
private headers: HttpHeaders;

constructor(private http: HttpClient) {
// this.squeakUrl = 'http://localhost:8080/squeak';
this.squeakUrl = 'https://tcg-squaker-back.herokuapp.com/squeak';
this.squeakUrl = 'http://localhost:8080/squeak';
// this.squeakUrl = 'https://tcg-squaker-back.herokuapp.com/squeak';
this.headers = new HttpHeaders({'Content-Type' : 'application/json'});
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/services/squeaker.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export class SqueakerService {
private headers: HttpHeaders;

constructor(private http: HttpClient) {
// this.squeakerUrl = 'http://localhost:8080/squeaker';
this.squeakerUrl = 'https://tcg-squaker-back.herokuapp.com/squeaker';
this.squeakerUrl = 'http://localhost:8080/squeaker';
// this.squeakerUrl = 'https://tcg-squaker-back.herokuapp.com/squeaker';
this.headers = new HttpHeaders({'Content-Type' : 'application/json'});
}

Expand Down

0 comments on commit a546df8

Please sign in to comment.