mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-18 01:19:49 +02:00
Run populateFromUri() from uri setter instead of external call
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user