srchub

srchub Commit Details


Date:2013-08-10 23:34:51 (11 years 4 months ago)
Author:Natalie Adams
Branch:master
Commit:3f69ca67b789b2324e34372d2965e37de2e42417
Parents: 5926f62bd17795d707980e774e9478594aa3af7d
Message:Fixing issue with site login OTP Temporary fix with SVN path commit issue

Changes:

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

Number of commits:
Page rendered in 0.06471s using 14 queries.