summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-03-14 00:41:55 +0200
committerLauri Ojansivu <x@xet7.org>2019-03-14 00:41:55 +0200
commit909a23e5295d1cf7f82a4e391a00e412aeef9d6c (patch)
treeabe8d12441bc38953217c9f1301093f08a486e84 /client
parentb68a2e2b41dddf233cf93a5909d80c46d2d178f5 (diff)
parentfd70556c82455df12db4d18ead6474da71928faf (diff)
downloadwekan-909a23e5295d1cf7f82a4e391a00e412aeef9d6c.tar.gz
wekan-909a23e5295d1cf7f82a4e391a00e412aeef9d6c.tar.bz2
wekan-909a23e5295d1cf7f82a4e391a00e412aeef9d6c.zip
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardsList.js2
-rw-r--r--client/components/main/layouts.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index ad5ee551..3aacdedb 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -25,7 +25,7 @@ BlazeComponent.extendComponent({
archived: false,
'members.userId': Meteor.userId(),
type: 'board',
- }, { sort: [['stars', 'desc'], ['color', 'asc'], ['title', 'asc'], ['description', 'asc'], ['_id', 'asc']] });
+ }, { sort: ['title'] });
},
isStarred() {
const user = Meteor.user();
diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js
index 4305de7c..d5b59b5f 100644
--- a/client/components/main/layouts.js
+++ b/client/components/main/layouts.js
@@ -105,10 +105,10 @@ async function authentication(event, instance) {
// If header login id is set, use it for login.
// Header username = Email address
// Header password = Login ID
- // Not user currently: req.headers[process.env.HEADER_LOGIN_FIRSTNAME]
- // and req.headers[process.env.HEADER_LOGIN_LASTNAME]
- const match = req.headers[process.env.HEADER_LOGIN_EMAIL] || $('#at-field-username_and_email').val();
- const password = req.headers[process.env.HEADER_LOGIN_ID] || $('#at-field-password').val();
+ // Not user currently: request.headers[Meteor.settings.public.headerLoginFirstname]
+ // and request.headers[Meteor.settings.public.headerLoginLastname]
+ const match = request.headers[Meteor.settings.public.headerLoginEmail] || $('#at-field-username_and_email').val();
+ const password = request.headers[Meteor.settings.public.headerLoginId] || $('#at-field-password').val();
if (!match || !password) return;
@@ -117,7 +117,7 @@ async function authentication(event, instance) {
if (result === 'password') return;
// If header login id is not set, don't try to login automatically.
- if (!process.env.HEADER_LOGIN_ID) {
+ if (!Meteor.settings.public.headerLoginId) {
// Stop submit #at-pwd-form
event.preventDefault();
event.stopImmediatePropagation();