1 回答数
0 投票数
vBulletin login system
Hi, I'm working on a system which will let Auth use the user table of a vBulletin forum.
The idea behind it is simple enough, you just need to point the User model at the forum's user table, modify the hashPasswords() function to take into account...
0 回答数
0 投票数
SSL loging always failed
hi, iam new on cakephp, i try to create https for login action, when iam login with wrong combination of username or password, it just work fine, but when i login with username and password combination true as saved on database, cake always...
2 回答数
1 投票数
The bugs of Auth?
in the controller, i use
function beforeFilter()
{
$this->Auth->deny("getSome");
}
function getSome()
{
echo "test";
$this->autoRender = false;
}
then the Auth doesnt deny when i'm not login,
but that, once i use these code
function... 2 回答数
0 投票数
How secure is cakephp, and its auth layer?
I'm thinking of getting started with cakephp, but I am concerned about security, especially cake's auth layer.
Just how secure is cake's auth layer? Does it:
- Ban users who attempt to login more than 3 failed attempts?
- Ban ip addresses
- Does it have...
2 回答数
1 投票数
Only one sesssion per user
There is a "cake way" to allow only one session by user. My customer sells on line courses so is not good if user have several sessions with one account at the same time.
I am thinking save user IP in session but that is a generic PHP approach.
1 回答数
0 投票数
Auth crash session
Sometimes when i only refresh my admin app the auth component lose session.
i'm not have this problem using othAuth,
2 回答数
0 投票数
hide/show links for different types of user group
i want to show different links for each logged in user any way.
link1 \
\
link2 \ \
\ \
link3 * manager \
/ * admin
link4 / /
/
link5 \ ... 1 回答数
0 投票数
Using Auth with legacy database
Hi,
I'm fighting with simple Auth autentication using legacy DB with non-CakePHP schema.
In table tb_mc: I have 2 columns for authentication:
id (number) as name
admin_pass (MySQL PASSWORD hash) as password
In my contoller I create custom...
1 回答数
0 投票数
Auth component for two tables
I have to use two tables for authorization of two pieces of system. First one standard users table, second one teachers table. Is it possible to do it in CakePhp ? If yes are there any restrictions ?
Regards,
Roman
1 回答数
0 投票数
Auth Redirect
Hello. I need to delete the Auth.redirect value from the session during logout() but it does not delete.
What I want is to use the Auth Auto redirect (extremely useful) and delete Auth.redirect value from the session during logout(). When I login...
0 回答数
0 投票数
Accessing the user after login
Yo yo,
ok, a bit of a troublesome question here. I'm wandering around in loops with this. I've made my nice, shiny login using the login component as documented, oh, say, everywhere, and even added a nifty "join" page, to let users register.
The...
2 回答数
0 投票数
Auth components password issue
When submitting a registration form I have the password field left blank. As this is required for the Auth component (have also set the email address as the username) it appears to be hashing the field value even if there is no value in it.
When...
1 回答数
1 投票数
How to know number of logged users?
I'm wonder how can I get the number of the logged users in the web ?
4 回答数
0 投票数
Get user id inside a model
I'm moving some of my find code inside models.
Previously in my controller I had
$this->Book->Review->find('first', array(
'conditions' => array(
'Review.book_id' => $id,
'Review.user_id' => $this->Auth->user('id')
)
));
so in my Review...
0 回答数
0 投票数
Ajax editor onFailure usage
Hi,
I have a system that collects information using the Ajax Editor textboxes. It works fine unless the person lets the page sit for a while and their Auth session ends. They are logged out and don't know it, then try to use the boxes which appear...
1 回答数
0 投票数
Flash message upon login
I'm using the Auth component for login, so my login action looks like
function login() {
if ($this->Session->read('Auth.User')) {
if ($this->data) {
$name = $this->Auth->user('username');
... 1 回答数
0 投票数
How do I change the error message for userScope?
I'm using Auth-userScope for the usual check to see if there was email confirmation:
http://book.cakephp.org/view/487/userScope
$this-Auth-userScope = array('User.confirmed' = 1);
When someone tries to login and they haven't confirmed, it just gives...
3 回答数
0 投票数
Auth->fields, db fields- left or right?
Hello,know anyone that name of db columns is on left, or right?
function beforeFilter() {
$this->Auth->fields = array(
'username' => 'username',
'password' => 'secretword'
);
}
4 回答数
1 投票数
setFlash not working
Hi, I'm having a problem with the setFlash. I have this piece of code included in my layout...
<?php
if ($session->check('Message.flash')) {
$session->flash();
}
?>
However none of my messages are showing up, any ideas?
2 回答数
0 投票数
Implement two separate auth components
I have a site with a client facing cms (login to manage their pages), and a customer facing landing page (login to maintain contact info and interact with elements on pages the client creates).
Clients and Customers have completely different uses...






