Skip to content

Commit

Permalink
Merge pull request #5205 from camptocamp/intrnet
Browse files Browse the repository at this point in the history
Support intranet users
  • Loading branch information
sbrunner committed Oct 21, 2019
2 parents 20bd90d + 5b312de commit deef96d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions contribs/gmf/src/authentication/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import * as Sentry from '@sentry/browser';
/**
* @typedef {Object} User
* @property {string|null} email User's email address
* @property {boolean|null} is_intranet The user is in the intranet.
* @property {AuthenticationFunctionalities|null} functionalities Configured functionalities of the user
* @property {boolean|null} is_password_changed True if the password of the user has been changed.
* False otherwise.
Expand Down
5 changes: 5 additions & 0 deletions contribs/gmf/src/authentication/component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<div ng-if="$ctrl.gmfUser.is_intranet">
<div class="form-group">
<span>{{'You are recognise as an intranet user.' | translate}}</span>
</div>
</div>
<div ng-if="$ctrl.gmfUser.username">
<div class="form-group">
<span>{{'Logged in as' | translate}}</span>
Expand Down

0 comments on commit deef96d

Please sign in to comment.