place expire warning in top

This commit is contained in:
Zin Moe
2020-06-08 09:53:48 +06:30
parent 5001d2f4ca
commit 67b4cf870e
25 changed files with 84 additions and 50 deletions

View File

@@ -159,12 +159,12 @@ class License
Rails.logger.debug "License Remote Response - " + response.parsed_response.to_s
if (@varified["status"])
if old_renewable_date.to_date == @varified['renewable_date'].to_date
message = "*** License couldn't be verified. ***"
message = "*** License can't be verified. ***"
status = 2
elsif old_renewable_date.to_date < @varified['renewable_date'].to_date
update_license("renewable_date", @varified['renewable_date'])
status = 1
message = "*** License could be verified. ***"
message = "*** License con be verified. ***"
end
return status, message