Skip to content

Commit 5d55ee7

Browse files
authored
Merge branch 'development' into group-permissions
2 parents fe246e7 + f085343 commit 5d55ee7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/controllers/public/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import classic from 'ember-classic-decorator';
22
import { action, computed } from '@ember/object';
33
import Controller from '@ember/controller';
44
import { htmlSafe } from '@ember/string';
5+
import ENV from 'open-event-frontend/config/environment';
56

67
@classic
78
export default class IndexController extends Controller {
@@ -26,6 +27,7 @@ export default class IndexController extends Controller {
2627
});
2728
newUser.save()
2829
.then(() => {
30+
ENV['ember-simple-auth-token'].refreshAccessTokens = false;
2931
const credentials = newUser.getProperties('email', 'password');
3032
const authenticator = 'authenticator:jwt';
3133
credentials.username = newUser.email;
@@ -69,6 +71,7 @@ export default class IndexController extends Controller {
6971
username,
7072
password
7173
};
74+
ENV['ember-simple-auth-token'].refreshAccessTokens = false;
7275
const authenticator = 'authenticator:jwt';
7376
this.session
7477
.authenticate(authenticator, credentials)

0 commit comments

Comments
 (0)