mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Allow a user to modifies its name, username, initials, and password. Fixes username handling on sandstorm. Fixes #149.
22 lines
537 B
JavaScript
22 lines
537 B
JavaScript
_.each(['signIn', 'signUp', 'resetPwd', 'forgotPwd', 'enrollAccount'],
|
|
function(routeName) {
|
|
AccountsTemplates.configureRoute(routeName, {
|
|
layoutTemplate: 'userFormsLayout'
|
|
});
|
|
});
|
|
|
|
Router.route('/profile/:username', {
|
|
name: 'Profile',
|
|
template: 'profile',
|
|
waitOn: function() {
|
|
return Meteor.subscribe('profile', this.params.username);
|
|
},
|
|
data: function() {
|
|
var params = this.params;
|
|
return {
|
|
profile: function() {
|
|
return Users.findOne({ username: params.username });
|
|
}
|
|
};
|
|
}
|
|
});
|