Yii Framework Forum: [Module] Yii User Management Module - Yii Framework Forum

Jump to content

  • (30 Pages)
  • +
  • « First
  • 10
  • 11
  • 12
  • 13
  • 14
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[Module] Yii User Management Module Discussion, Bug Reports and Feature Requests for the User Management Rate Topic: ***** 5 Votes

#221 User is offline   lwx2615 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 14-January 11

Posted 20 January 2011 - 10:51 AM

View Postthyseus, on 01 March 2010 - 01:26 PM, said:

This is the forum thread for the Yii User Management Module

In order to use this Module, please be sure to use the latest development Snapshot of yii or at least yii-1.1.1 (to be released).
It will not work with the stable yii-1.1. (Only with a few Workarounds)

I have just released this Tutorial for installing the User Management Module under a fresh installed Skeleton Application generated by yiic.

Cookbook Page for a Tutorial of installing Yii-User-Management under a fresh Application skeleton (68)

Please test my freshly released Version 0.2 of this Module and give me all sort of feedback
(Bug Reports, Feature Requests, and so on)

many thanks to the yii-user Module which was the codebase for this Module. As far as i know it gets developed in parallel to this
Module. We should modularize and merge our features soon.

Also take a look at grbac !

last but not least: enjoi!

My yiiframework is the latest,and at last i can access the istall page,but it can't work.because the files are prevented to access. The modules I want to install has the different structure directory,and it's different from the yii.But it can insatll out side the protected file.
0

#222 User is offline   sravani 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 22-January 11

Posted 25 January 2011 - 04:27 AM

After setting up the extension I am getting this issue....
Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file.
0

#223 User is offline   macinville 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 268
  • Joined: 25-October 10
  • Location:Marikina City, Philippines

Posted 25 January 2011 - 11:26 AM

View Postsravani, on 25 January 2011 - 04:27 AM, said:

After setting up the extension I am getting this issue....
Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file.


First of, I'm glad you finally posted this question under the correct thread. :)

Second, please check the directory of your YUM because according to your post here:

View Postsravani, on 25 January 2011 - 04:09 AM, said:

yes,I have placed it under extensions/modules...folder and followed all the instruction rules as said..but unable to getrid of it..


the 'user' folder should be under /protected/modules, not /protected/extensions/modules.

Lastly, make sure that 'user' is part of your modules in your main.php, like this:
//in /protected/config/main.php
...
'modules'=>array(
	// uncomment the following to enable the Gii tool
	'gii'=>array(
		'class'=>'system.gii.GiiModule',
		'password'=>'dataline',
	),
	'user' => array(
		'debug' => true,
	),
),
...

This is only an example of course. Change this according to your needs.
Tell your tail.
Don't be shy to upvote a post if it was able to help you
0

#224 User is offline   sravani 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 22-January 11

Posted 27 January 2011 - 12:13 AM

View Postmacinville, on 25 January 2011 - 11:26 AM, said:

First of, I'm glad you finally posted this question under the correct thread. :)

Second, please check the directory of your YUM because according to your post here:



the 'user' folder should be under /protected/modules, not /protected/extensions/modules.

Lastly, make sure that 'user' is part of your modules in your main.php, like this:
//in /protected/config/main.php
...
'modules'=>array(
	// uncomment the following to enable the Gii tool
	'gii'=>array(
		'class'=>'system.gii.GiiModule',
		'password'=>'dataline',
	),
	'user' => array(
		'debug' => true,
	),
),
...

This is only an example of course. Change this according to your needs.

yes,I have put it under protected/modules/user as u said but..am finding 1 more issue now...:(
include(C:\xampp\htdocs\testdrive\protected\modules\user\core\YumWebModule.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
0

#225 User is offline   macinville 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 268
  • Joined: 25-October 10
  • Location:Marikina City, Philippines

Posted 27 January 2011 - 07:56 AM

View Postsravani, on 27 January 2011 - 12:13 AM, said:

yes,I have put it under protected/modules/user.....

You put it under protected/modules/user? So, that makes your directory looks like '/protected/modules/user/user'? Kindly clarify :)

View Postsravani, on 27 January 2011 - 12:13 AM, said:

include(C:\xampp\htdocs\testdrive\protected\modules\user\core\YumWebModule.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

Does the YumWebModule.php resides in the said directory? Hmm... A permission problem,perhaps?
Tell your tail.
Don't be shy to upvote a post if it was able to help you
0

#226 User is offline   ShootNik 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 02-December 10
  • Location:Ukraine, Luhansk

Posted 08 February 2011 - 07:24 AM

Quote

Thanks for your interest in yum. I expect 0.8 for the beginning of february. There are too many new features that still need to be polished for a stable release.

Sorry for persistence, but I can't decide try use current version or wait v0.8, Your plans changed (about release 0.8 at the beginning of february) or not?
0

#227 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 09 February 2011 - 02:49 PM

View PostShootNik, on 08 February 2011 - 07:24 AM, said:

Sorry for persistence, but I can't decide try use current version or wait v0.8, Your plans changed (about release 0.8 at the beginning of february) or not?


then let me decide for you: try the svn! :)

i dont want to get the 0.8 out if there is not everything perfect. and i did not had time yet to
finish the registration process. maybe i do some work over the weekend and we get the 0.8 @beginning of next week... thanks for your interest
0

#228 User is offline   mjkulet 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 82
  • Joined: 03-November 10

Posted 10 February 2011 - 11:04 AM

If I may ask, what features are added in 0.8?
0

#229 User is offline   nereia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 15-February 11

Posted 15 February 2011 - 11:21 AM

hi! I've create a new app called RWU instead testdrive and when I try to install it (I tried all the possible paths) I get:

Error 404
Unable to resolve the request

I read all the posts but I didn't find the solution. what files I must modified in order to install the new module in my new app? If I try the same thing with testdrive app it works..!

Thank you,
0

#230 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 15 February 2011 - 04:30 PM

What was the URL you have used? I think it should be

 http://localhost/rwu/index.php/user/install 
or
 http://localhost/rwu/index.php?r=user/install 


are you sure you have followed all steps in the docs/install_tutorial?

about the changes:

http://code.google.c...s/changelog.txt

and about the 0.8 release:

only one or two more personal hackatons and i declare 0.8 as 'stable'. It just cant take much longer! :)

about too much features:

Yes. Yum has much features. Too much. I need to rethink the module substructure, and i already have an idea. But this goes into >0.8 somewhere in the future.
0

#231 User is offline   appugno 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 25-February 11

Posted 25 February 2011 - 09:04 AM

Hello all
1. I've just checked out and installed Yum from the SVN(revision 307) trunk.
2. Installation went without much problems.
3. I'm able to login, using both demo accounts 'admin' and 'demo'.
4 Despite 2 and 3 above, if I change passwords of the demo accounts, or create a new user, I'm unable to login using the newly created accounts nor the new password for the demo I set.
5. If I copy password hash values directly in the DB, I'm able to restore original passwords and login. As if md5 hash stored in the DB get's somehow corrupted before it is stored in the DB.
3. I have not been programming in PHP for a long time, nevertheless,:username statement used in the code below does not make much sense me, similar statements (variable names with a : prefix) are all over Yum source, what are those? is it a bug, or a feature.

$user = YumUser::model()->find('username = :username', array( ':username' => $this->loginForm->username));


Any suggestions are welcomed. Please advise if I'm missing something, what is causing above password changes not to work, dilemma and comment on the :username.

Thank you.
0

#232 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 25 February 2011 - 10:39 AM

SQL statements are being prepared to avoid SQL injection. This is a Feature. See the guide on how this works :)

I have no clue about why your password get corrupted. It works on my machine. Did you set a custom function in the application configuration for password hash - or - did you set a salt - of not, could you try and tell us if the password still gets corrupted?
0

#233 User is offline   appugno 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 25-February 11

Posted 25 February 2011 - 12:32 PM

Thank you for the reply and information on the anti SQL injection measure.
I will look into the password issue as you suggested.
Can you please tell me where to set md5 salt, do I have to dig down to the function call.

Thanks again,

My environment:

PHP info in attached.


[root@www ~]# uname -a
FreeBSD ########### 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


[root@www ~]# httpd -version
Server version: Apache/2.2.15 (FreeBSD)
Server built: Jun 12 2010 03:34:03



View Postthyseus, on 25 February 2011 - 10:39 AM, said:

SQL statements are being prepared to avoid SQL injection. This is a Feature. See the guide on how this works :)

I have no clue about why your password get corrupted. It works on my machine. Did you set a custom function in the application configuration for password hash - or - did you set a salt - of not, could you try and tell us if the password still gets corrupted?

Attached File(s)


0

#234 User is offline   appugno 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 25-February 11

Posted 26 February 2011 - 05:25 AM

Please advise what guide do yo mean below. Thanks

View Postthyseus, on 25 February 2011 - 10:39 AM, said:

SQL statements are being prepared to avoid SQL injection. This is a Feature. See the guide on how this works :)

I have no clue about why your password get corrupted. It works on my machine. Did you set a custom function in the application configuration for password hash - or - did you set a salt - of not, could you try and tell us if the password still gets corrupted?

0

#235 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 26 February 2011 - 06:25 AM

http://www.yiiframew...ding-parameters
0

#236 User is offline   appugno 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 25-February 11

Posted 26 February 2011 - 06:35 PM

Thanks

I found what the problem is, but I'm still looking for where it happen and why, I don't know the framework itself yet, so will need some more time.

Somehow YumUser->$password get's stored in the DB encrypted twice, I've checked this, pls see below, if I store, to the DB, values encrypted only once manually, it works.


Quote

[root@radius1 ~]# php -a
Interactive mode enabled

<?php
print md5("hello2010"); <-- this is the password that i've set
ede2c57bcac202a3f3ec57d1f0d2e2fe
print md5("ede2c57bcac202a3f3ec57d1f0d2e2fe");
6043609c9bfd74f520dc834d1eaf48ef <<- this is the value that i've found in the database.




View Postthyseus, on 26 February 2011 - 06:25 AM, said:


0

#237 User is offline   moysoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 03-January 11

Posted 01 March 2011 - 11:57 AM

From ver. 0.5 to 0.6
- UserModule::disableEmailActivation has been renamed to
UserModule::enableEmailActivation (default to true)

Open ... protected/modules/user/models/YumUser.php


change line (about line 120) :

if(YumWebModule::yum()->disableEmailActivation == true)

to

if(YumWebModule::yum()->enableEmailActivation == true)

Remember default value for property enableEmailActivation is
true, so you must provide the server with mail server, because
confirmation e-mail automaticaly send to your email address. If
you in development state change default enableEmailActivation to
false

Open : protected\modules\user\UserModule.php

change :

public $enableEmailActivation = true;

to :

public $enableEmailActivation = false;

with this option your registration is not validated by email and
automaticaly registered to the application database.



View Postmoisty70, on 23 June 2010 - 05:06 AM, said:

Hi,

Great Module!, Thanks for your great job.

When trying to create a new user (registration) I got this error:

CException
Description

Property "UserModule.disableEmailActivation" is not defined.
Source File

D:\MOI\yii-1.1.2.r2086\framework\base\CModule.php(88)

00076:     /**
00077:      * Getter magic method.
00078:      * This method is overridden to support accessing application components
00079:      * like reading module properties.
00080:      * @param string application component or property name
00081:      * @return mixed the named property value
00082:      */
00083:     public function __get($name)
00084:     {
00085:         if($this->hasComponent($name))
00086:             return $this->getComponent($name);
00087:         else
00088: return parent::__get($name);
00089:     }
00090: 
00091:     /**
00092:      * Checks if a property value is null.
00093:      * This method overrides the parent implementation by checking
00094:      * if the named application component is loaded.
00095:      * @param string the property name or the event name
00096:      * @return boolean whether the property value is null
00097:      */
00098:     public function __isset($name)
00099:     {
00100:         if($this->hasComponent($name))

Stack Trace

#0 D:\MOI\yii-1.1.2.r2086\framework\base\CModule.php(88): CComponent->__get('disableEmailAct...')
#1 D:\MOI\yii-1.1.2.r2086\yiiregalos\protected\modules\user\UserModule.php(101): CModule->__get('disableEmailAct...')
#2 D:\MOI\yii-1.1.2.r2086\yiiregalos\protected\modules\user\models\YumUser.php(120): UserModule->__get('disableEmailAct...')
#3 D:\MOI\yii-1.1.2.r2086\yiiregalos\protected\modules\user\controllers\YumUserController.php(94): YumUser->register('moi', 'moi12', 'noanonimo@gmail...')
#4 D:\MOI\yii-1.1.2.r2086\framework\web\actions\CInlineAction.php(32): YumUserController->actionRegistration()
#5 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(300): CInlineAction->run()
#6 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CFilterChain.php(129): CController->runAction(Object(CInlineAction))
#7 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CFilter.php(41): CFilterChain->run()
#8 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(999): CFilter->filter(Object(CFilterChain))
#9 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))
#10 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CFilterChain.php(126): CInlineFilter->filter(Object(CFilterChain))
#11 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(283): CFilterChain->run()
#12 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#13 D:\MOI\yii-1.1.2.r2086\framework\web\CWebApplication.php(320): CController->run('registration')
#14 D:\MOI\yii-1.1.2.r2086\framework\web\CWebApplication.php(120): CWebApplication->runController('user/user/regis...')
#15 D:\MOI\yii-1.1.2.r2086\framework\base\CApplication.php(135): CWebApplication->processRequest()
#16 D:\MOI\yii-1.1.2.r2086\yiiregalos\index.php(12): CApplication->run()
#17 {main}

2010-06-23 12:17:31 Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color mod_fastcgi/2.4.6 PHP/5.2.5 Yii Framework/1.1.2



0

#238 User is offline   shani1351 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 27-February 11

Posted 09 March 2011 - 08:55 AM

View Postmoysoft, on 01 March 2011 - 11:57 AM, said:

From ver. 0.5 to 0.6
- UserModule::disableEmailActivation has been renamed to
UserModule::enableEmailActivation (default to true)

Open ... protected/modules/user/models/YumUser.php


change line (about line 120) :

if(YumWebModule::yum()->disableEmailActivation == true)

to

if(YumWebModule::yum()->enableEmailActivation == true)

Remember default value for property enableEmailActivation is
true, so you must provide the server with mail server, because
confirmation e-mail automaticaly send to your email address. If
you in development state change default enableEmailActivation to
false

Open : protected\modules\user\UserModule.php

change :

public $enableEmailActivation = true;

to :

public $enableEmailActivation = false;

with this option your registration is not validated by email and
automaticaly registered to the application database.






Hello,
I'm trying to install yii-user-management 0.6 on the latest yii release but keep getting errors.
When I try to register in index.php?r=user/user/registration I get an error :
"CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1364 Field 'timestamp' doesn't have a default value"
in C:\xampp\htdocs\yii_base\protected\modules\user\models\YumUser.php(132): CActiveRecord->save()
and the user is being added to the DB with status 0.
I've changed the status in the db in order to check other things and saw that if I want to edit my profile in index.php?r=user/user/edit
I get an error :
Fatal error: Call to a member function getErrors() on a non-object in C:\xampp\htdocs\yii-1.1.6.r2877\framework\web\helpers\CHtml.php on line 1566

What should I do to fix those problems?

Thanks

0

#239 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 09 March 2011 - 09:29 AM

please take a look at the SVN version of yii-user-management, thanks
0

#240 User is offline   shani1351 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 27-February 11

Posted 09 March 2011 - 09:37 AM

View Postthyseus, on 09 March 2011 - 09:29 AM, said:

please take a look at the SVN version of yii-user-management, thanks


Thank you for your reply.
I've took the files from the SVN, what should I do with the folder "user_mongo"?

When I try to install the module from index.php?r=user/install (default settings) I get an error :
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1364 Field 'message_new_friendship' doesn't have a default value

how do I fix this error?
0

Share this topic:


  • (30 Pages)
  • +
  • « First
  • 10
  • 11
  • 12
  • 13
  • 14
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users