Ignore:
Timestamp:
02/24/21 17:04:35 (4 years ago)
Author:
Özkan İliyaz <iliyaz_96@…>
Branches:
master
Children:
0c07a90
Parents:
1f059b0
Message:

ADD post confirmation with multiple phases, notification after succesfully password creation

Location:
app/Http/Requests/Dashboard
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Requests/Dashboard/NewUserRequest.php

    r1f059b0 rd25ba66  
    3838    protected function getValidatorInstance()
    3939    {
    40         if($this->request->has("mobile_number") && $this->request->has("mobile_number_country")) {
    41             $this->request->set("mobile_number", PhoneNumber::make(
    42                 $this->request->get("mobile_number"),
    43                 $this->request->get("mobile_number_country")
    44             )->formatInternational());
    45         }
     40        try {
     41            if($this->request->has("mobile_number") && $this->request->has("mobile_number_country")) {
     42                $this->request->set("mobile_number", PhoneNumber::make(
     43                    $this->request->get("mobile_number"),
     44                    $this->request->get("mobile_number_country")
     45                )->formatInternational());
     46            }
     47        } catch (\Exception $e) {}
    4648
    4749        return parent::getValidatorInstance();
Note: See TracChangeset for help on using the changeset viewer.