13 lines
227 B
Ruby
13 lines
227 B
Ruby
if @result
|
|
json.status true
|
|
json.sent_pin true
|
|
json.customer_id @cus.id
|
|
elsif @cus
|
|
json.status true
|
|
json.sent_pin false
|
|
json.customer_id @cus.id
|
|
else
|
|
json.status false
|
|
json.message "Phone number invalid"
|
|
end
|