changes in verification

This commit is contained in:
Nweni
2019-11-22 18:03:41 +06:30
parent 2c5e3a11e5
commit 3b468b78f4
4 changed files with 14 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ class Customer < ApplicationRecord
self.name = "User " + pin.to_s
self.contact_no = phone
self.email = pin.to_s + "@gmail.com"
self.pin_code = pin
self.pin_code = pin.to_s
self.pin_sent_at = Time.now
self.save
return self