Run populateFromUri() from uri setter instead of external call

This commit is contained in:
Bubka
2020-11-17 15:30:50 +01:00
parent 7bdd286fb2
commit 648c8f8006
3 changed files with 12 additions and 34 deletions

View File

@@ -57,7 +57,7 @@ class TwoFAccountController extends Controller
$twofaccount = new TwoFAccount;
if( $request->uri ) {
$twofaccount->populateFromUri($request->uri);
$twofaccount->uri = $request->uri;
}
else {
$twofaccount->populate($request->all());
@@ -136,7 +136,7 @@ class TwoFAccountController extends Controller
// The request data contain an uri
$twofaccount = new TwoFAccount;
$twofaccount->populateFromUri($request->otp['uri']);
$twofaccount->uri = $request->otp['uri'];
}
else {