Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hollan haule authored and hollan haule committed Jul 25, 2018
1 parent b407136 commit ca4284b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
24 changes: 22 additions & 2 deletions chat-frontend/src/app/components/register/register.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="login-center">
<div class="row">
<!-- <div class="row">
<form id="formValidate" class="col s12" (submit)="onSubmitCreds()" [formGroup]="form">
<div class="row">
<div class="input-field col s12">
Expand Down Expand Up @@ -31,5 +31,25 @@
</div>
</div>
</form>
</div>
</div> -->
<form (submit)="onSubmitCreds()" [formGroup]="form">
<div class="form-group">
<label for="exampleInputEmail1">Username</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" formControlName="username" [(ngModel)]="username" [formGroup]="form">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" formControlName="password" [formGroup]="form" [(ngModel)]="password">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Repeat</label>
<input type="password" class="form-control" id="exampleInputPassword1" [(ngModel)]="passwordrepeat" formControlName="passwordrepeat" [formGroup]="form">
<div class="bg-danger" *ngIf="form.controls.passwordrepeat.errors?.MatchPassword">Password not match</div>
</div>
<div class="form-group">
<div class="float-right">
<button [disabled]="form.invalid" type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
2 changes: 2 additions & 0 deletions chat-frontend/src/app/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ export class AuthService {

prepEndpoint(ep){
if(this.isDev){
console.log('DEV TRUE')
return ep;
} else {
console.log('dev not true')
return 'https://'+window.location.host+'/'+ep;
}
}
Expand Down
Binary file modified chatapp/settings/__pycache__/production.cpython-36.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion chatmain/static/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chatmain/static/main.js.map

Large diffs are not rendered by default.

0 comments on commit ca4284b

Please sign in to comment.