edit ticket controller

This commit is contained in:
Sunandar
2017-02-03 13:46:59 +06:30
parent 721fd282ca
commit b4c9e8cc8e
8 changed files with 67 additions and 55 deletions

View File

@@ -1,9 +1,10 @@
class Api::AuthController < ApplicationController
skip_before_filter :verify_authenticity_token
def login
username = params[:username]
access = params[:access_code]
member = Member.find_by_email(username)
if member && member.valid_password?(access)
member.session_token = SecureRandom.hex