# By Diego Sampaio (8) and Rodrigo Nascimento (2) # Via Gabriel Engel (3) and Rodrigo Nascimento (2) * 'develop' of github.com:RocketChat/Rocket.Chat: Increase the delay to render color fields fix guest users default role standardize colors definition improved clean button color support named color for message attachments added request debug messages trim integration messages Try to parse all request bodies as JSON new password reset screen fix reset password - closes #1502pull/1783/head
commit
bab2ab3dba
@ -1,30 +1,30 @@ |
||||
RocketChat.theme.addPublicColor "primary-background-color", "#04436A" |
||||
RocketChat.theme.addPublicColor "primary-background-color", "#04436a" |
||||
RocketChat.theme.addPublicColor "primary-font-color", "#444444" |
||||
RocketChat.theme.addPublicColor "secondary-background-color", "#F4F4F4" |
||||
RocketChat.theme.addPublicColor "secondary-font-color", "#7F7F7F" |
||||
RocketChat.theme.addPublicColor "tertiary-background-color", "#EAEAEA" |
||||
RocketChat.theme.addPublicColor "secondary-background-color", "#f4f4f4" |
||||
RocketChat.theme.addPublicColor "secondary-font-color", "#7f7f7f" |
||||
RocketChat.theme.addPublicColor "tertiary-background-color", "#eaeaea" |
||||
RocketChat.theme.addPublicColor "tertiary-font-color", "rgba(255, 255, 255, 0.6)" |
||||
RocketChat.theme.addPublicColor "quaternary-font-color", "#FFF" |
||||
RocketChat.theme.addPublicColor "quaternary-font-color", "#ffffff" |
||||
|
||||
RocketChat.theme.addPublicColor "action-buttons-color", "#13679a" |
||||
RocketChat.theme.addPublicColor "active-channel-background-color", "rgba(255, 255, 255, 0.075)" |
||||
RocketChat.theme.addPublicColor "active-channel-font-color", "rgba(255, 255, 255, 0.75)" |
||||
RocketChat.theme.addPublicColor "blockquote-background", "#CCC" |
||||
RocketChat.theme.addPublicColor "clean-buttons-color", "rgba(0, 0, 0, 0.025)" |
||||
RocketChat.theme.addPublicColor "code-background", "#F8F8F8" |
||||
RocketChat.theme.addPublicColor "code-border", "#CCC" |
||||
RocketChat.theme.addPublicColor "code-color", "#333" |
||||
RocketChat.theme.addPublicColor "content-background-color", "#FFF" |
||||
RocketChat.theme.addPublicColor "blockquote-background", "#cccccc" |
||||
RocketChat.theme.addPublicColor "clean-buttons-color", "rgba(0, 0, 0, 0.25)" |
||||
RocketChat.theme.addPublicColor "code-background", "#f8f8f8" |
||||
RocketChat.theme.addPublicColor "code-border", "#cccccc" |
||||
RocketChat.theme.addPublicColor "code-color", "#333333" |
||||
RocketChat.theme.addPublicColor "content-background-color", "#ffffff" |
||||
RocketChat.theme.addPublicColor "custom-scrollbar-color", "rgba(255, 255, 255, 0.05)" |
||||
RocketChat.theme.addPublicColor "info-active-font-color", "#FF0000" |
||||
RocketChat.theme.addPublicColor "info-font-color", "#AAAAAA" |
||||
RocketChat.theme.addPublicColor "info-active-font-color", "#ff0000" |
||||
RocketChat.theme.addPublicColor "info-font-color", "#aaaaaa" |
||||
RocketChat.theme.addPublicColor "input-font-color", "rgba(255, 255, 255, 0.85)" |
||||
RocketChat.theme.addPublicColor "link-font-color", "#008CE3" |
||||
RocketChat.theme.addPublicColor "link-font-color", "#008ce3" |
||||
RocketChat.theme.addPublicColor "message-hover-background-color", "#f9f9f9" |
||||
RocketChat.theme.addPublicColor "smallprint-font-color", "#C2E7FF" |
||||
RocketChat.theme.addPublicColor "smallprint-hover-color", "#FFFFFF" |
||||
RocketChat.theme.addPublicColor "status-away", "#FCB316" |
||||
RocketChat.theme.addPublicColor "status-busy", "#D30230" |
||||
RocketChat.theme.addPublicColor "smallprint-font-color", "#c2e7ff" |
||||
RocketChat.theme.addPublicColor "smallprint-hover-color", "#ffffff" |
||||
RocketChat.theme.addPublicColor "status-away", "#fcb316" |
||||
RocketChat.theme.addPublicColor "status-busy", "#d30230" |
||||
RocketChat.theme.addPublicColor "status-offline", "rgba(150, 150, 150, 0.50)" |
||||
RocketChat.theme.addPublicColor "status-online", "#35AC19" |
||||
RocketChat.theme.addPublicColor "status-online", "#35ac19" |
||||
RocketChat.theme.addPublicColor "unread-notification-color", "#1dce73" |
||||
|
@ -0,0 +1,15 @@ |
||||
<template name="resetPassword"> |
||||
<form id="login-card" action="/"> |
||||
<div class="fields"> |
||||
<header> |
||||
<p>{{_ "Please_enter_your_new_password_below"}}</p> |
||||
</header> |
||||
<div class="input-text active"> |
||||
<input type="password" name="newPassword" placeholder="{{_ "Type_your_new_password"}}" dir="auto" /> |
||||
</div> |
||||
<div class="submit"> |
||||
<button data-loading-text="{{_ "Please_wait"}}..." class="button primary resetpass"><span>{{_ "Reset"}}</span></button> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</template> |
@ -0,0 +1,26 @@ |
||||
Template.resetPassword.events({ |
||||
'submit #login-card': function(event, instance) { |
||||
event.preventDefault(); |
||||
|
||||
var button = instance.$('button.resetpass'); |
||||
RocketChat.Button.loading(button); |
||||
|
||||
Accounts.resetPassword(FlowRouter.getParam('token'), instance.find('[name=newPassword]').value, function(error) { |
||||
RocketChat.Button.reset(button); |
||||
if (error) { |
||||
console.log(error); |
||||
swal({ |
||||
title: t('Error_changing_password'), |
||||
type: 'error' |
||||
}); |
||||
} else { |
||||
FlowRouter.go('home'); |
||||
toastr.success(t('Password_changed_successfully')); |
||||
} |
||||
}); |
||||
} |
||||
}); |
||||
|
||||
Template.resetPassword.onRendered(function() { |
||||
this.find('[name=newPassword]').focus(); |
||||
}); |
@ -0,0 +1,6 @@ |
||||
FlowRouter.route('/reset-password/:token', { |
||||
name: 'resetPassword', |
||||
action: function() { |
||||
BlazeLayout.render('loginLayout', {center: 'resetPassword'}); |
||||
} |
||||
}); |
@ -1,17 +1,6 @@ |
||||
Meteor.startup -> |
||||
Accounts.onEmailVerificationLink (token, done) -> |
||||
Accounts.verifyEmail token, (error) -> |
||||
if not error? |
||||
alert(t('Email_verified')) |
||||
Accounts.onEmailVerificationLink (token, done) -> |
||||
Accounts.verifyEmail token, (error) -> |
||||
if not error? |
||||
alert(t('Email_verified')) |
||||
|
||||
done() |
||||
|
||||
Accounts.onResetPasswordLink (token, done) -> |
||||
newPassword = prompt(t('New_password')) |
||||
Accounts.resetPassword token, newPassword, (error) -> |
||||
if error? |
||||
console.log error |
||||
alert(t('Error_changing_password')) |
||||
else |
||||
alert('Password_changed') |
||||
done() |
||||
done() |
||||
|
Loading…
Reference in new issue