My application has the structure of monthly subscriptions that give you a single “admin” account login responsible for billing. Under that main user account, there can be numerous employees, some, …
Tag: authentication
How do i use conditional parameters in Laravel Auth::attempt?
Using Laravel 4.1.30 I got this following code which test a sign-in attempt via Auth. I like to implement a conditional value such as: I am using the active (field) as a level of authentication for users signing in. Anything above 0 (zero) should satisfy the next condition. How can it be done in one statement? Answer tl;dr You can’t
Can’t connect LDAP server – issue in ldap_bind();
I am tried to implement a LDAP authentication in my web application developed in ZF2. LDAP authentication is working fine in Windows 7. But, after moving the application to LINUX machine, LDAP authentication is not working. I am always getting the error as : Warning: ldap_bind(): Unable to bind to server: Can’t contact LDAP server in LdapConnect.php on line 20
PHP Multiple Username & Passwords
So, this is probably the simplest question I could ever possibly ask.. Though it is driving me insane. In my login system, I have it set up to read the username and password from a standalone file “users.php” inside it contains I can not, for the life of me figure out how to make it read multiple usernames and passwords.
PHP cURL/Socket and HTTP authentication
I have a webpage with a list of HTML links for images in a protected subfolder. This folder is protected via .htaccess and HTTP authentication. Is there a way to use cURL/Socket, or something like …
Login redirect Issue in post comment area in PHP
If someone wishes to comment on any item e.g. and article or forum item, etc. on my site. It prompts them to login/create account. Is it possible to make sure that when the client logs in it takes them back to the comment they wanted to make? But now it’s going not like this flow. The user not logging in
Convert MySQL login script to PDO
I’ve written a functional login script using MySQL. However, I’ve now been told that it needs to be done using PDO, and I’ve a functional PDO connection: function getConnection() { $userName = ‘**…
how to integrate fFacebook login with your website?
I made some research and i can’t seem to completely understand how to integrate Facebook login with your website. I’m trying to do this for an old fashioned PHP shop that, up till now, doesn’t use any type of login, but only a session that allows users to browse across pages and add items to cart. I read here, on
How can I use Basic HTTP Authentication in PHP?
I’m trying to use Basic HTTP Authentication and followed the example on the PHP manual page. But it doesn’t work for me. The variable $_SERVER[‘PHP_AUTH_USER’] doesn’t seem to be set. When a user try to log in, the user is prompted whith a new login-dialog. The server is running PHP 5.3.3 and I have tried with Google Chrome and Internet