mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Working on L5
This commit is contained in:
parent
3641019d04
commit
635c1b9df1
@ -676,7 +676,7 @@ class AccountController extends BaseController
|
||||
$user->last_name = trim(Input::get('new_last_name'));
|
||||
$user->email = trim(strtolower(Input::get('new_email')));
|
||||
$user->username = $user->email;
|
||||
$user->password = trim(Input::get('new_password'));
|
||||
$user->password = bcrypt(trim(Input::get('new_password')));
|
||||
$user->registered = true;
|
||||
$user->save();
|
||||
|
||||
|
@ -336,7 +336,7 @@ class UserController extends BaseController
|
||||
|
||||
// save the new password
|
||||
$user = Auth::user();
|
||||
$user->password = $password;
|
||||
$user->password = bcrypt($password);
|
||||
$user->save();
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
|
@ -165,7 +165,7 @@ class Utils
|
||||
'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '',
|
||||
'ip' => Request::getClientIp(),
|
||||
'count' => Session::get('error_count', 0),
|
||||
'input' => Input::all()
|
||||
//'input' => Input::all()
|
||||
];
|
||||
|
||||
Log::error($error."\n", $data);
|
||||
|
@ -584,5 +584,7 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
);
|
||||
|
@ -575,6 +575,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
);
|
||||
|
@ -554,6 +554,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
|
||||
|
@ -575,6 +575,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
);
|
@ -577,6 +577,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
);
|
||||
|
@ -585,6 +585,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
|
||||
|
@ -583,6 +583,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
);
|
@ -578,6 +578,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
|
||||
|
@ -578,6 +578,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
);
|
||||
|
@ -581,6 +581,8 @@ return array(
|
||||
'email_approved' => 'Email me when a quote is <b>approved</b>',
|
||||
'notification_quote_approved_subject' => 'Quote :invoice was approved by :client',
|
||||
'notification_quote_approved' => 'The following client :client approved Quote :invoice for :amount.',
|
||||
'resend_confirmation' => 'Resend confirmation email',
|
||||
'confirmation_resent' => 'The confirmation email was resent',
|
||||
|
||||
|
||||
);
|
||||
|
@ -104,7 +104,7 @@
|
||||
|
||||
|
||||
{!! Former::password('current_password')->style('width:300px') !!}
|
||||
{!! Former::password('new_password')->style('width:300px') !!}
|
||||
{!! Former::password('newer_password')->style('width:300px')->label(trans('texts.new_password')) !!}
|
||||
{!! Former::password('confirm_password')->style('width:300px') !!}
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@
|
||||
$('#country_id').combobox();
|
||||
|
||||
$('#passwordModal').on('hidden.bs.modal', function () {
|
||||
$(['current_password', 'new_password', 'confirm_password']).each(function(i, field) {
|
||||
$(['current_password', 'newer_password', 'confirm_password']).each(function(i, field) {
|
||||
var $input = $('form #'+field);
|
||||
$input.val('');
|
||||
$input.closest('div.form-group').removeClass('has-success');
|
||||
@ -193,13 +193,13 @@
|
||||
function validateChangePassword(showError)
|
||||
{
|
||||
var isFormValid = true;
|
||||
$(['current_password', 'new_password', 'confirm_password']).each(function(i, field) {
|
||||
$(['current_password', 'newer_password', 'confirm_password']).each(function(i, field) {
|
||||
var $input = $('form #'+field),
|
||||
val = $.trim($input.val());
|
||||
var isValid = val && val.length >= 6;
|
||||
|
||||
if (isValid && field == 'confirm_password') {
|
||||
isValid = val == $.trim($('#new_password').val());
|
||||
isValid = val == $.trim($('#newer_password').val());
|
||||
}
|
||||
|
||||
if (isValid) {
|
||||
@ -229,9 +229,9 @@
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '{{ URL::to('users/change_password') }}',
|
||||
url: '{{ URL::to('/users/change_password') }}',
|
||||
data: 'current_password=' + encodeURIComponent($('form #current_password').val()) +
|
||||
'&new_password=' + encodeURIComponent($('form #new_password').val()) +
|
||||
'&new_password=' + encodeURIComponent($('form #newer_password').val()) +
|
||||
'&confirm_password=' + encodeURIComponent($('form #confirm_password').val()),
|
||||
success: function(result) {
|
||||
if (result == 'success') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user