mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 21:04:35 -04:00
Minor fixes for wepay
This commit is contained in:
parent
0d9bab647a
commit
68a41768ac
@ -58,7 +58,7 @@ class ContactForgotPasswordController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function showLinkRequestForm(Request $request)
|
public function showLinkRequestForm(Request $request)
|
||||||
{
|
{
|
||||||
$account_id = $request->get('account_id');
|
$account_id = $request->has('account_id') ? $request->get('account_id') : 1;
|
||||||
$account = Account::find($account_id);
|
$account = Account::find($account_id);
|
||||||
$company = $account->companies->first();
|
$company = $account->companies->first();
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ class ContactResetPasswordController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function showResetForm(Request $request, $token = null)
|
public function showResetForm(Request $request, $token = null)
|
||||||
{
|
{
|
||||||
$account_id = $request->get('account_id');
|
$account_id = $request->has('account_id') ? $request->get('account_id') : 1;
|
||||||
$account = Account::find($account_id);
|
$account = Account::find($account_id);
|
||||||
$db = $account->companies->first()->db;
|
$db = $account->companies->first()->db;
|
||||||
$company = $account->companies->first();
|
$company = $account->companies->first();
|
||||||
|
@ -208,8 +208,8 @@ class WePayPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
return 'Processed successfully';
|
return 'Processed successfully';
|
||||||
} elseif ($objectType == 'account') {
|
} elseif ($objectType == 'account') {
|
||||||
if ($accountId != $objectId) {
|
if ($accountId !== $objectId) {
|
||||||
throw new \Exception('Unknown account');
|
throw new \Exception('Unknown account ' . $accountId . ' does not equal '.$objectId);
|
||||||
}
|
}
|
||||||
|
|
||||||
$wepayAccount = $this->wepay->request('account', array(
|
$wepayAccount = $this->wepay->request('account', array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user