mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-25 15:24:21 +00:00
fix marking bug - when typing chinese
This commit is contained in:
@@ -70,7 +70,7 @@ class RegisterController extends Controller
|
||||
if(!$marking){
|
||||
return response()->json(["message"=>"Marking does not exist, please contact sales team to get one"], 400);
|
||||
}
|
||||
if($marking->marking != $data['marking']){
|
||||
if($marking->marking != strtoupper($data['marking'])){
|
||||
return response()->json(["message"=>"Incorrect marking"], 400);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class RegisterController extends Controller
|
||||
$user = new User();
|
||||
$user->name = $data['name'];
|
||||
$user->email = $data['email'];
|
||||
$user->marking = $marking->marking;
|
||||
$user->marking = $marking->marking;
|
||||
$user->password = bcrypt($data['password']);
|
||||
|
||||
$user->save();
|
||||
|
||||
Reference in New Issue
Block a user