app/models/device.rb
# Helper method to create an auth token.
# Used by sys admins to debug problems without performing a password reset.
Helper method to create an auth token.
Used by sys admins to debug problems without performing a password reset.
Helper method to create an auth token . Used by sys admins to debug problems without performing a password reset .
def help_customer
    Rollbar.error("Someone is creating a debug user token", { device: self.id })
    token = SessionToken.as_json(users.first, "staff", fbos_version).to_json
    return "localStorage['session'] = JSON.stringify(#{token});"
  end
def help_customer Rollbar . error ( "Someone is creating a debug user token" , { device : self . id } ) token = SessionToken . as_json ( users . first , "staff" , fbos_version ) . to_json return "localStorage['session'] = JSON.stringify(#{token});" end
Helper method to create an auth token.
Helper method to create an auth token .