tax profiles

This commit is contained in:
Myat Zin Wai Maw
2020-01-16 10:05:45 +06:30
parent bad510c6b4
commit 676251a12c
14 changed files with 79 additions and 66 deletions

View File

@@ -48,10 +48,10 @@ class Employee < ApplicationRecord
#Extend the login time each time authenticatation take place
user.session_expiry = user.session_expiry.utc + expiry_time.minutes
user.save
return true
return user
end
elsif user = Employee.find_by_app_token(token)
return true
return user
end
end
return false