Fix bugs found when testing with app. #658
This commit is contained in:
parent
9bc1f44ca2
commit
dad3caecf3
1 changed files with 2 additions and 2 deletions
|
|
@ -249,7 +249,7 @@ class APIController extends Controller implements LoggedController
|
|||
$rt->sendSMS($phone_number, $translator->trans('message.battery_brand_allcaps'), $message);
|
||||
}
|
||||
|
||||
public function confirmNumber(RisingTideGateway $rt, Request $req)
|
||||
public function confirmNumber(RisingTideGateway $rt, Request $req, TranslatorInterface $translator)
|
||||
{
|
||||
// check parameters
|
||||
$required_params = [
|
||||
|
|
@ -306,7 +306,7 @@ class APIController extends Controller implements LoggedController
|
|||
if ($otp_mode != 'test')
|
||||
{
|
||||
// send sms to number
|
||||
$this->sendConfirmationCode($rt, $phone_number, $code);
|
||||
$this->sendConfirmationCode($rt, $phone_number, $code, $translator);
|
||||
}
|
||||
|
||||
// response
|
||||
|
|
|
|||
Loading…
Reference in a new issue