Skip to content

Commit

Permalink
fix messagebird
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Jul 29, 2021
1 parent c488dd1 commit 102f8b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
17 changes: 3 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/Http/Controllers/API/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function register(Request $request){
else {
Mail::to($checkEx)->send(new EmailCode($checkEx->code));
if(!empty($request->get('phone'))){
send_sms('3U4hIoTFq6FZddMbJ9gZWFRw2','+201069706892', $checkEx->phone, 'Your Code IS: '. $checkEx->code);;
send_sms(setting('messagebird.access_key'),setting('messagebird.originator'), $checkEx->phone, 'Your Code IS: '. $checkEx->code);;
}

return response()->json([
Expand Down Expand Up @@ -74,7 +74,7 @@ public function register(Request $request){

Mail::to($user)->send(new EmailCode($user->code));
if(!empty($user->phone)){
send_sms('3U4hIoTFq6FZddMbJ9gZWFRw2','+201069706892', $user->phone, 'Your Code IS: '. $user->code);
send_sms(setting('messagebird.access_key'),setting('messagebird.originator'), $user->phone, 'Your Code IS: '. $user->code);
}

return response()->json([
Expand Down Expand Up @@ -117,7 +117,7 @@ public function resend(Request $request){
}

if(!empty($request->get('phone'))){
send_sms('3U4hIoTFq6FZddMbJ9gZWFRw2','+201069706892', $checkEx->phone, 'Your Code IS: '. $checkEx->code);
send_sms(setting('messagebird.access_key'),setting('messagebird.originator'), $checkEx->phone, 'Your Code IS: '. $checkEx->code);
}

return response()->json([
Expand Down

0 comments on commit 102f8b3

Please sign in to comment.