minor styling change to authenticationtoken model, changed the expire_at column of AuthenticationToken form date to datetime

This commit is contained in:
Janis4411
2022-08-02 17:35:56 +02:00
committed by Sebastian Serth
parent 1a987a65d4
commit 6e213f754f
4 changed files with 10 additions and 8 deletions

View File

@ -4,6 +4,7 @@ require 'securerandom'
class AuthenticationToken < ApplicationRecord
include Creation
def self.generate!(user)
create!(
shared_secret: SecureRandom.hex(32),