search for: loggedin

Displaying 9 results from an estimated 9 matches for "loggedin".

Did you mean: logged_in
2006 Nov 04
3
role based authorization question
...ay ''admin'', to have access to every action on every controller without explicitly having to create a Right for each? I know this will not work as is, and to force it to do so would violate MVC, but is there some other way to accomplish having something like this in a controller: loggedin=false; if session[:user] Applicant.find(session[:user]).roles.each{|r| loggedin=true if r.name== "admin"} end skip_before_filter :check_authentication, :check_authorization if loggedin Thanks, Howard -------------- next part -------------- An HTML attachment was scrubbed... URL: http:/...
2012 Apr 11
0
F5 SLB iRule - POP3 TLS Offload & Add Realm
...e's the rule: when CLIENT_ACCEPTED { if { [TCP::local_port clientside] == "110" } { # Disable SSL if we're on port 110 (as we're doing TLS Offload) set secure 0 SSL::disable } else { set secure 1 } set realm "mydomain.com" set debug 0 set loggedin 0 } when SERVER_CONNECTED { TCP::collect } when CLIENTSSL_HANDSHAKE { SSL::collect set secure 1 } when CLIENTSSL_DATA { if { $debug } { log local0. "CLIENT DATA: [SSL::payload]" } set lcpayload [string tolower [SSL::payload]] if { $lcpayload starts_with "user" }...
2007 Jan 04
8
Common setup code and naming specifications
Hello! I have a lot of contexts for testing Rails controllers, that must do something like ''session[:logged_in] = true'' in their setup. How can this be refactored? In unit tests I would simply create a LoggedInControllerTest base class, that all my functional tests would derive from. And another small question: In my controller specifications I often have to decide whether to write: specify "should provide the first ten items in @items and three pages in @pages when passing no :page parameter to t...
2006 Jan 12
2
Web services and login?
Has anyone managed to do this? I thought about using sessions but they dont want to work for me... Here''s what I''m doing as a little test: class NotLoggedIn < Exception end class ProjectsController < ApplicationController wsdl_service_name ''Projects'' web_service_api ProjectsApi def Login @session[:loggedIn] = true end def GetProjects if @session[:loggedIn] return Project.find(:all) else raise NotLogged...
2008 Apr 30
1
Avelsieve 1.9.7 and Dovecot/TLS
...,1024); if(stream_socket_enable_crypto($this->fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT) == false) { $this->error=EC_UNKNOWN; $this->error_raw = "Failed to establish TLS connection."; return false; } else { $this->loggedin = true; // RFC says that we need to ask for the capabilities again $this->sieve_get_capability(); $this->loggedin = false; } } With my limited time and debugging possibilities i've found that the dovecot managesieve ser...
2006 Jan 29
6
tyro Ruby questin
...@list %> <tr> <td><%= i.inspect %></td> </tr> <% end %> </table> I get #"Spaghetti", "sunToSatRoles"=>nil, "currentRole"=>"Q", "group_id"=>nil, "id"=>"3", "loggedIn"=>"1", "baseRole"=>"O", "monDtlDef_id"=>nil}> #"name", "sunToSatRoles"=>nil, "currentRole"=>nil, "group_id"=>nil, "id"=>"2", "loggedIn"=>nil, "baseRole...
2020 Jan 26
0
Number of imap-login processes always keeps growing, never goes down
...s can also login via a username / password combo stored in LDAP for clients that don't support 'oauthbearer' (ie. about all the mail clients ;-). We run Dovecot on SmartOS (ie. Illumos, a Solaris derivative). Oddly enough 'doveadm' is under the impression there are only 3 users loggedin (when there are 512 imap-login processes). I think 'doveadm who' doesn't show users who are authenticated via an token (oauthbearer) because I only see 3 users and I don't see my own user which is logged in via Open-Xchange by using oauthbearer as auth method. I've anonimized th...
2003 Oct 20
16
A software FAX modem
Hi all, I would like to announce the availability of an initial test version of a totally software FAX facility, suitable for use with Asterisk. This is a first public test release, so don't expect a solid polished product just yet. People have shown interest in what I am doing, and here is the evidence that it is not vapourware. If the notion of a software FAX machine is new to you,
2008 Dec 16
20
step definitons to check login
I am working with the authlogic gem and trying to create a simple login test from cucumber features. The feature statement is: Given the user is not logged in The step definition for this is confounding me. In the application_controller the authlogic tutorial recommends the following: private def require_user unless current_user store_location flash[:notice] =