[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2011-06-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711

--- Comment #8 from T. Gries m...@tgries.de 2011-06-09 09:56:09 UTC ---
UPDATE/CORRECTION of comment #7

Added a hook as suggested.
SpecialOpenIDLogin.body.php:

 # new user account: not opened by mail, opened by OpenID
 wfRunHooks( 'AddNewAccount', array( $user, false ) );

* since r88763
* http://www.mediawiki.org/wiki/Manual:Hooks/AddNewAccount
*
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/OpenID/SpecialOpenIDLogin.body.php?revision=88763view=markup

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2011-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711

T. Gries m...@tgries.de changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #7 from T. Gries m...@tgries.de 2011-05-24 21:55:37 UTC ---
Added a hook as suggested. Added a third parameter to the hook $byOpenID = true

SpecialOpenIDLogin.body.php:

# new user account: not opened by mail, opened by OpenID
wfRunHooks( 'AddNewAccount', array( $user, false, true ) );

http://www.mediawiki.org/wiki/Manual:Hooks/AddNewAccount
fixed in r88758

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2011-05-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711

Siebrand s.mazel...@xs4all.nl changed:

   What|Removed |Added

 AssignedTo|sergey.chernys...@gmail.com |m...@tgries.de

--- Comment #6 from Siebrand s.mazel...@xs4all.nl 2011-05-16 09:54:31 UTC ---
Mass maintainer change.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2009-12-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711


Alexandre Emsenhuber [IAlex] alex.emsenhu...@bluewin.ch changed:

   What|Removed |Added

   Keywords||patch




-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2009-11-30 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711





--- Comment #2 from Jack D. Pond jack.p...@psitex.com  2009-11-30 13:27:31 
UTC ---
(In reply to comment #1)
 Maybe a hook should be added in the backend (User::addToDatabase()) instead?

Possible, but it is handled in includes/specials/SpecialUserLogin.php always
appearing right before addNewUserLogEntry function call, e.g.:

wfRunHooks( 'AddNewAccount', array( $u, false ) );
$u-addNewUserLogEntry();

This is used several times in that script, and I thought might be best to
continue the existing practice into OpenID.

However, this question brings up another, to wit, should other login/create
account hooks be included in the OpenID extension?  And if so, which ones? 
Will look into this and invite others to do so, adding to this bug?


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2009-11-30 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711





--- Comment #3 from Sergey Chernyshev sergey.chernys...@gmail.com  2009-11-30 
15:01:28 UTC ---
I have a feeling that hooks should be in the core unless their users extend
OpenID specifically.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2009-11-30 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711





--- Comment #4 from Jack D. Pond jack.p...@psitex.com  2009-11-30 17:11:27 
UTC ---
(In reply to comment #3)
 I have a feeling that hooks should be in the core unless their users extend
 OpenID specifically.

Sergey, agreed, but that depend on the definition of core.  If core
includes standard Special pages like SpecialUserLogin, this hook is already
included in there, thrice as a matter of fact, once in
addNewAccountMailPassword() and twice in addNewAccount(), all 3 times
immediately prior to addNewUserLogEntry() method.  The problem is that OpenID
extension bypasses many of the checks and functional processes of the standard
login and uses primatives.  This goes back to the question I discussed with you
before about whether the two should be merged - I'd personally like to see this
functionality included in the core and even used on WP.

In this case I use this particular hook for the exact same reason - to provide
functionality when a new user registers.  Other hooks that have relevance for
OpenID would be:

AbortNewAccount - http://www.mediawiki.org/wiki/Manual:Hooks/AbortNewAccount
AbortLogin - http://www.mediawiki.org/wiki/Manual:Hooks/AbortLogin
AuthPluginAutoCreate -
http://www.mediawiki.org/wiki/Manual:Hooks/AuthPluginAutoCreate
LoginAuthenticateAudit -
http://www.mediawiki.org/wiki/Manual:Hooks/LoginAuthenticateAudit
UserLoginMailPassword -
http://www.mediawiki.org/wiki/Manual:Hooks/UserLoginMailPassword 
User::mailPasswordInternal -
http://www.mediawiki.org/wiki/Manual:Hooks/mailPasswordInternal
UserLoginComplete -
http://www.mediawiki.org/wiki/Manual:Hooks/UserLoginComplete
UserCreateForm - http://www.mediawiki.org/wiki/Manual:Hooks/UserCreateForm

Maybe the question is really should a different hook be provided that
distinguishes it from standard logins, but much of this functionality is useful
in both - and serves the exact same purpose in both generally.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21711] Execute MediaWiki Hook 'AddNewAccount' when new account is added

2009-11-30 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21711





--- Comment #5 from Sergey Chernyshev sergey.chernys...@gmail.com  2009-11-30 
19:06:53 UTC ---
I see your point and I think merging OpenID support into core is the right
thing to do, but it's probably not my call to make.

I think it'll make sense to include some of those hooks (starting with
AddNewAccount) into OpenID, but not sure if all of them should be included.
It's possible that login needs to be re-architected to be properly extended
considering that OpenID provides only portion of the process.

Do you have a specific implementation that requires any of those hooks to be
added to OpenID?


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l