This commit is contained in:
Sunandar
2017-02-02 17:35:42 +06:30
parent 1d96d2bb31
commit 721fd282ca
4 changed files with 20 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ class UsersController < ApplicationController
cipher = OpenSSL::Cipher::Cipher.new("aes-256-cbc")
key=cipher.random_key
secrect_key= Base64.encode64(key)
@user.secrect_key=secrect_key
@user.secrect_key=secrect_key
respond_to do |format|
if @user.save