Skip to content

Commit

Permalink
Add reseting password url in authentication form
Browse files Browse the repository at this point in the history
  • Loading branch information
PapsOu committed May 15, 2018
1 parent c70d56a commit 20d6787
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/authentication/authentication.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>
<p *ngIf="error" class="error">{{ 'authentication.form.error' | translate }}</p>
<button type="submit" [disabled]="!authForm.valid" class="btn btn-green" id="authentication-submit" title="{{ 'homepage.cards.placeholder_start' | translate }}">{{ 'authentication.form.submit' | translate }}</button>
<a href="#">{{ 'authentication.forgotten_password' | translate }}</a>
<a href="{{backendUrl}}">{{ 'authentication.forgotten_password' | translate }}</a>
</fieldset>
</form>
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/app/authentication/authentication.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TranslateService } from '@ngx-translate/core';
import { LanguagesService } from 'app/services/languages.service';
import { AuthenticationService } from 'app/services/authentication.service';
import { User } from 'app/authentication/user.model';
import { environment } from 'environments/environment';

@Component({
selector: 'app-authentication',
Expand All @@ -13,8 +14,11 @@ import { User } from 'app/authentication/user.model';
export class AuthenticationComponent implements OnInit {
public user = new User('', '');
public error = false;
public backendUrl = '#'

constructor(public authService: AuthenticationService, public router: Router) {}
constructor(public authService: AuthenticationService, public router: Router) {
this.backendUrl = environment.api.host + '/resetting/request'
}

onSubmit() {
this.authService.authenticate(this.user).then(
Expand Down

0 comments on commit 20d6787

Please sign in to comment.