Browse code

Presmerovanie do chatu po uspesnom prihlaseni

Cinan Rakosnik authored on 07/03/2013 at 10:08:54
Showing 1 changed files
... ...
@@ -13,8 +13,8 @@ class SessionsController < ApplicationController
13 13
 			return render 'new'
14 14
 		end
15 15
 
16
-		flash.now[:notice] = I18n.t 'login.success'
17
-		render 'new'
16
+        create_new_authentification()
17
+        redirect_to chat_path, flash: {notice: I18n.t('login.success')}
18 18
 	end
19 19
 
20 20
 	def destroy