srchub-old

srchub-old Commit Details


Date:2013-08-10 23:34:00 (11 years 4 months ago)
Author:Natalie Adams
Branch:default
Commit:f1c1e101e3d4
Parents: 41511e0127d9
Message:Fixing issue with site login OTP

Temporary fix with SVN path commit issue
Changes:
Mindefero/src/IDF/Form/UserAccount.php (1 diff)
Mindefero/src/IDF/Plugin/SyncSvn.php (2 diffs)
Mpluf/src/Pluf/User.php (1 diff)

File differences

indefero/src/IDF/Form/UserAccount.php
173173
174174
175175
176
176
177177
178178
179179
'help_text' => __('You will get an email to confirm that you own the address you specify.'),
));
$otp = "";
if ($user_data->otpkey != "")
if ($this->user->otpkey != "")
$otp = Pluf_Utils::convBase($this->user->otpkey, '0123456789abcdef', 'abcdefghijklmnopqrstuvwxyz234567');
$this->fields['otpkey'] = new Pluf_Form_Field_Varchar(
array('required' => false,
indefero/src/IDF/Plugin/SyncSvn.php
9494
9595
9696
97
97
98
99
98100
99101
100102
......
105107
106108
107109
108
110
111
109112
110113
111114
'output' => $output)));
return;
}
$p = realpath(dirname(__FILE__).'/../../../scripts/svn-post-commit');
// FIX ME
//$p = realpath(dirname(__FILE__).'/../../../scripts/svn-post-commit');
$p = "/home/www/indefero/scripts/svn-post-commit";
exec(sprintf(Pluf::f('idf_exec_cmd_prefix', '').'ln -s %s %s',
escapeshellarg($p),
escapeshellarg($svn_path.'/'.$shortname.'/hooks/post-commit')),
$svn_path.'/'.$shortname.'/hooks/post-commit'));
return;
}
$p = realpath(dirname(__FILE__).'/../../../scripts/svn-post-revprop-change');
//$p = realpath(dirname(__FILE__).'/../../../scripts/svn-post-revprop-change');
$p = "/home/www/indefero/scripts/svn-post-revprop-change";
exec(sprintf(Pluf::f('idf_exec_cmd_prefix', '').'ln -s %s %s',
escapeshellarg($p),
escapeshellarg($svn_path.'/'.$shortname.'/hooks/post-revprop-change')),
pluf/src/Pluf/User.php
271271
272272
273273
274
274
275275
276276
277277
} else {
$otp = substr($password, 0, 6);
$pass = substr($password, 6);
$totp = new \OTPHP\TOTP(strtoupper($this->otpkey));
$totp = new \OTPHP\TOTP(strtoupper(Pluf_Utils::convBase($this->otpkey, '0123456789abcdef', 'abcdefghijklmnopqrstuvwxyz234567')));
if ($totp->verify($otp) && $this->password == base64_encode(sha1($pass, TRUE)))
{
return true;

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.42314s using 14 queries.