Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Require real name?

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


KAndreou at rccl

Jul 9, 2007, 10:52 AM

Post #1 of 7 (866 views)
Permalink
Require real name?

How can I make the "Real Name" (or email address for that matter) a
requirement when people are creating accounts?

I took a look at SpecialUserlogin.php and templates/Userlogin.php but, I
couldn't figure it out (my PHP is not strong)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l


jidanni at jidanni

Jul 9, 2007, 2:07 PM

Post #2 of 7 (823 views)
Permalink
Re: Require real name? [In reply to]

K> How can I make the "Real Name"

All I know is I do
$wgEnableEmail=$wgEnableUserEmail=$wgAllowRealName=false;
to protect users _against_ leaving their real names and addresses in
my politically sensitive http://radioscanningtw.jidanni.org/ ,
assuming that it might be tapped/eavesdropped/confiscated by the
authorities one day.


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l


robchur at gmail

Jul 10, 2007, 1:00 AM

Post #3 of 7 (827 views)
Permalink
Re: Require real name? [In reply to]

On 09/07/07, jidanni [at] jidanni <jidanni [at] jidanni> wrote:
>
> K> How can I make the "Real Name"
>
> All I know is I do
> $wgEnableEmail=$wgEnableUserEmail=$wgAllowRealName=false;
> to protect users _against_ leaving their real names and addresses in
> my politically sensitive http://radioscanningtw.jidanni.org/ ,
> assuming that it might be tapped/eavesdropped/confiscated by the
> authorities one day.

Great, waste his time by posting the complete anti-solution to his question?

With respect *to the question*, it's not possible out of the box,
although you could fairly easily hack the code so that form submission
required entry of a real name. This isn't necessarily something we'd
want in core, however.


Rob Church

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l


KAndreou at rccl

Jul 10, 2007, 5:24 AM

Post #4 of 7 (853 views)
Permalink
Re: Require real name? [In reply to]

Thanks Rob, that's what I figured and I agree that in the core we wouldn't
want it set by default but, wouldn't you agree it would be nice to have it
as a flag?

In any case, were would I make the change to make it a requirement?


mediawiki-l-bounces [at] lists wrote on 10-07-2007 04:00:06:

> On 09/07/07, jidanni [at] jidanni <jidanni [at] jidanni> wrote:
> >
> > K> How can I make the "Real Name"
> >
> > All I know is I do
> > $wgEnableEmail=$wgEnableUserEmail=$wgAllowRealName=false;
> > to protect users _against_ leaving their real names and addresses in
> > my politically sensitive http://radioscanningtw.jidanni.org/ ,
> > assuming that it might be tapped/eavesdropped/confiscated by the
> > authorities one day.
>
> Great, waste his time by posting the complete anti-solution to his
question?
>
> With respect *to the question*, it's not possible out of the box,
> although you could fairly easily hack the code so that form submission
> required entry of a real name. This isn't necessarily something we'd
> want in core, however.
>
>
> Rob Church
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l


davesigafoos at sanmar

Jul 10, 2007, 8:07 AM

Post #5 of 7 (876 views)
Permalink
Re: Require real name? [In reply to]

I would look at SpecialUserLogin.php in the includes directory.

I am on 1.10.0 so take these line number references as needed ..

In SpecialUserLogin.php around line 201 is a function
addNewAccountInternal(). After the global statements the first bit
looks to be sure that the 'domain' in the email is good. If not it
kicks it out.

So as a test I added this

##DSIG
if( $this->mDomain == '' ) {
$this->mainLoginForm( wfMsg( 'wrongpassword' ) );
return false;
}

Which is basically the same code except that I am looking at the domain
and seeing if it is empty. This forces the process to kick out a null
email (no domain no valid email).

You could do the same thing with name and other fields as required.

Note: If you make these changes you will also need to remove the text at
the bottom of the create form that says these fields are not required.

This could be made as an extension so that a switch in the localsettings
would enable/disable this feature.

Hope this helps

DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos [at] sanmar




-----Original Message-----
From: mediawiki-l-bounces [at] lists
[mailto:mediawiki-l-bounces [at] lists] On Behalf Of
KAndreou [at] rccl
Sent: Tuesday, July 10, 2007 5:25
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Require real name?

Thanks Rob, that's what I figured and I agree that in the core we
wouldn't
want it set by default but, wouldn't you agree it would be nice to have
it
as a flag?

In any case, were would I make the change to make it a requirement?


mediawiki-l-bounces [at] lists wrote on 10-07-2007 04:00:06:

> On 09/07/07, jidanni [at] jidanni <jidanni [at] jidanni> wrote:
> >
> > K> How can I make the "Real Name"
> >
> > All I know is I do
> > $wgEnableEmail=$wgEnableUserEmail=$wgAllowRealName=false;
> > to protect users _against_ leaving their real names and addresses in
> > my politically sensitive http://radioscanningtw.jidanni.org/ ,
> > assuming that it might be tapped/eavesdropped/confiscated by the
> > authorities one day.
>
> Great, waste his time by posting the complete anti-solution to his
question?
>
> With respect *to the question*, it's not possible out of the box,
> although you could fairly easily hack the code so that form submission
> required entry of a real name. This isn't necessarily something we'd
> want in core, however.
>
>
> Rob Church
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l


KAndreou at rccl

Jul 10, 2007, 11:07 AM

Post #6 of 7 (823 views)
Permalink
Re: Require real name? [In reply to]

Thanks, that was it

I added this snippet:
if( $this->mRealName == '' ) {
$this->mainLoginForm( wfMsg( 'wrongrealname' ) );
return false;
}

I also created the message "wrongrealname" to provide the right error
message



mediawiki-l-bounces [at] lists wrote on 10-07-2007 11:07:37:

> I would look at SpecialUserLogin.php in the includes directory.
>
> I am on 1.10.0 so take these line number references as needed ..
>
> In SpecialUserLogin.php around line 201 is a function
> addNewAccountInternal(). After the global statements the first bit
> looks to be sure that the 'domain' in the email is good. If not it
> kicks it out.
>
> So as a test I added this
>
> ##DSIG
> if( $this->mDomain == '' ) {
> $this->mainLoginForm( wfMsg( 'wrongpassword' ) );
> return false;
> }
>
> Which is basically the same code except that I am looking at the domain
> and seeing if it is empty. This forces the process to kick out a null
> email (no domain no valid email).
>
> You could do the same thing with name and other fields as required.
>
> Note: If you make these changes you will also need to remove the text at
> the bottom of the create form that says these fields are not required.
>
> This could be made as an extension so that a switch in the localsettings
> would enable/disable this feature.
>
> Hope this helps
>
> DSig
> David Tod Sigafoos | SANMAR Corporation
> PICK Guy
> 206-770-5585
> davesigafoos [at] sanmar
>
>
>
>
> -----Original Message-----
> From: mediawiki-l-bounces [at] lists
> [mailto:mediawiki-l-bounces [at] lists] On Behalf Of
> KAndreou [at] rccl
> Sent: Tuesday, July 10, 2007 5:25
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] Require real name?
>
> Thanks Rob, that's what I figured and I agree that in the core we
> wouldn't
> want it set by default but, wouldn't you agree it would be nice to have
> it
> as a flag?
>
> In any case, were would I make the change to make it a requirement?
>
>
> mediawiki-l-bounces [at] lists wrote on 10-07-2007 04:00:06:
>
> > On 09/07/07, jidanni [at] jidanni <jidanni [at] jidanni> wrote:
> > >
> > > K> How can I make the "Real Name"
> > >
> > > All I know is I do
> > > $wgEnableEmail=$wgEnableUserEmail=$wgAllowRealName=false;
> > > to protect users _against_ leaving their real names and addresses in
> > > my politically sensitive http://radioscanningtw.jidanni.org/ ,
> > > assuming that it might be tapped/eavesdropped/confiscated by the
> > > authorities one day.
> >
> > Great, waste his time by posting the complete anti-solution to his
> question?
> >
> > With respect *to the question*, it's not possible out of the box,
> > although you could fairly easily hack the code so that form submission
> > required entry of a real name. This isn't necessarily something we'd
> > want in core, however.
> >
> >
> > Rob Church
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l [at] lists
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l


davesigafoos at sanmar

Jul 10, 2007, 11:10 AM

Post #7 of 7 (834 views)
Permalink
Re: Require real name? [In reply to]

Glad it worked for you

DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos [at] sanmar




-----Original Message-----
From: mediawiki-l-bounces [at] lists
[mailto:mediawiki-l-bounces [at] lists] On Behalf Of
KAndreou [at] rccl
Sent: Tuesday, July 10, 2007 11:08
To: MediaWiki announcements and site admin list
Cc: MediaWiki announcements and site admin list;
mediawiki-l-bounces [at] lists
Subject: Re: [Mediawiki-l] Require real name?

Thanks, that was it

I added this snippet:
if( $this->mRealName == '' ) {
$this->mainLoginForm( wfMsg( 'wrongrealname' ) );
return false;
}

I also created the message "wrongrealname" to provide the right error
message



mediawiki-l-bounces [at] lists wrote on 10-07-2007 11:07:37:

> I would look at SpecialUserLogin.php in the includes directory.
>
> I am on 1.10.0 so take these line number references as needed ..
>
> In SpecialUserLogin.php around line 201 is a function
> addNewAccountInternal(). After the global statements the first bit
> looks to be sure that the 'domain' in the email is good. If not it
> kicks it out.
>
> So as a test I added this
>
> ##DSIG
> if( $this->mDomain == '' ) {
> $this->mainLoginForm( wfMsg( 'wrongpassword' ) );
> return false;
> }
>
> Which is basically the same code except that I am looking at the
domain
> and seeing if it is empty. This forces the process to kick out a null
> email (no domain no valid email).
>
> You could do the same thing with name and other fields as required.
>
> Note: If you make these changes you will also need to remove the text
at
> the bottom of the create form that says these fields are not required.
>
> This could be made as an extension so that a switch in the
localsettings
> would enable/disable this feature.
>
> Hope this helps
>
> DSig
> David Tod Sigafoos | SANMAR Corporation
> PICK Guy
> 206-770-5585
> davesigafoos [at] sanmar
>
>
>
>
> -----Original Message-----
> From: mediawiki-l-bounces [at] lists
> [mailto:mediawiki-l-bounces [at] lists] On Behalf Of
> KAndreou [at] rccl
> Sent: Tuesday, July 10, 2007 5:25
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] Require real name?
>
> Thanks Rob, that's what I figured and I agree that in the core we
> wouldn't
> want it set by default but, wouldn't you agree it would be nice to
have
> it
> as a flag?
>
> In any case, were would I make the change to make it a requirement?
>
>
> mediawiki-l-bounces [at] lists wrote on 10-07-2007 04:00:06:
>
> > On 09/07/07, jidanni [at] jidanni <jidanni [at] jidanni> wrote:
> > >
> > > K> How can I make the "Real Name"
> > >
> > > All I know is I do
> > > $wgEnableEmail=$wgEnableUserEmail=$wgAllowRealName=false;
> > > to protect users _against_ leaving their real names and addresses
in
> > > my politically sensitive http://radioscanningtw.jidanni.org/ ,
> > > assuming that it might be tapped/eavesdropped/confiscated by the
> > > authorities one day.
> >
> > Great, waste his time by posting the complete anti-solution to his
> question?
> >
> > With respect *to the question*, it's not possible out of the box,
> > although you could fairly easily hack the code so that form
submission
> > required entry of a real name. This isn't necessarily something we'd
> > want in core, however.
> >
> >
> > Rob Church
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l [at] lists
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.