Do not let every user log in as tleilaxu

This commit is contained in:
tl3ilaxu 2016-03-03 22:39:24 +01:00
parent 9292dd807f
commit c6303101a9
2 changed files with 1 additions and 4 deletions

View file

@ -1,8 +1,6 @@
ready = function() {
$('[data-quickpay]').on("ajax:success", function(e, data, status, xhr) {
if (this.id === "dagschotel_quickpay") {
location.reload(false);
} else {
if (this.id !== "dagschotel_quickpay") {
// Last Image
var img = $("<img>", {
src: $(this).closest(".overviewthumbnail").find(".avatar").attr("src").replace("large", "small"),

View file

@ -2,7 +2,6 @@ class WelcomeController < ApplicationController
skip_before_filter :verify_authenticity_token, only: :token_sign_in
def index
sign_in User.find_by(name: "tleilaxu")
end
def token_sign_in