Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: def admitted_students end def current_students end def _add_admin end def admin @user = User.new end def create @user = User.new(first_name: params[:first_name], last_name: params[:last_name], email: params[:email]) @user.password = "123456789" @user.password_confirmation = "123456789" if @user.save redirect_to users_admin_path, notice: "User created successfully" else render 'admin' end end end Source: http://pastie.org/pastes/9701227/download
↧