Extension talk:ConfirmAccount

Jump to: navigation, search

About this board


By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Avoiding initial email address confirmation

3
Tansaku (talkcontribs)

I've got ConfirmAccount working on a mediawiki instance (1.28.1) and I notice that there's an email address confirmation step that takes place *before* the account is approved. I'm wondering if that can be removed?

I think the email might easily be missed by the user trying to create their account, and there is an email to the address when the admin confirms the account that seems to serve the same purpose, i.e. they are being informed of their account approval and being asked to reset their password.

As it stands users have to receive two email and click through on them both before and after being confirmed by an admin. I'm wondering if there's some way to remove the first email since the second one would seem to be a sufficient check ...

Coyote897 (talkcontribs)

I think this is a good suggestion/request.

Huwmanbeing (talkcontribs)

Agreed: the first email address confirmation seems unnecessary and premature — the request may not even be granted.

It seems best simply to have the user submit a request, then (if approved) get a single email telling them they're in and giving instructions on how to proceed.

Reply to "Avoiding initial email address confirmation"
Loansindi (talkcontribs)

I'm running a wiki at work, and we're using the ConfirmAccount extension. One of my coworkers made a typo in his email address when making his request. The request was rejected, but he's unable to create another account with the same username (Management has requested a particular username scheme) because that rejected request is still sitting in the queue. Is there any way to delete that request so he can re-request with the correct email address?

Reply to "Remove pending request?"

Hook to add "request account" to personal urls is not working

1
70.190.141.70 (talkcontribs)

I added the code from the "Enhancements" section to my LocalSettings.php:

$wgHooks['PersonalUrls'][] = 'onPersonalUrls';

function onPersonalUrls( array &$personal_urls, Title $title, SkinTemplate $skin ) {

// Add a link to Special:RequestAccount if a link exists for login

if ( isset( $personal_urls['login'] ) || isset( $personal_urls['anonlogin'] ) ) {

$personal_urls['createaccount'] = array(

'text' => wfMessage( 'requestaccount' )->text(),

'href' => SpecialPage::getTitleFor( 'RequestAccount' )->getFullURL()

);

}

return true;

}

But I still do not see a link for "Request Account" in the upper right of my pages when the user is not logged in. I also made sure that the text "Request account" was added to MediaWiki:Requestaccount. I resaved the page to be sure.

I also have $wgGroupPermissions set to false for * createaccount

Is there something I am missing here? I am trying to make a private wiki where users can request accounts.

Reply to "Hook to add "request account" to personal urls is not working"
Obayda1757 (talkcontribs)

I uploaded my developed (in local server, using XAMPP) wiki site to linux web server using cPanel.

I have done following steps: 1) Create DB with user access 2) Import DB from old DB (using SQL format) 3) Upload MediaFile using file manager. 4) configure the "localsettings.php" file as given bellow...

But having the problem of "database connetion"

My site is here: databankbd.com/dbwiki

Error:

A database query error has occurred. This may indicate a bug in the software.

  • Query: SELECT lc_value FROM `databank_bddb1l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
  • Function: LCStoreDB::get
  • Error: 1146 Table 'databank_bddb1.databank_bddb1l10n_cache' doesn't exist (localhost)
Reply to "Unable to connect DataBase"

Cannot whitelist "Special:RequestAccount"

4
Summary by Seb35

A tip to whitelist this special page.

JP8827 (talkcontribs)

First time user of MediaWiki. Trying to create a private Wiki (anonymous users cannot read/write until they sign-up). However, when accessing the RequestAccount page, the "Login Required" screen appears. I've whitelisted the RequestAccount, not sure what else needs to be done. v 1.27.1

$wgWhitelistRead =  array ("Main Page", "Special:UserLogin", "Special:RequestAccount", "-");

$wgGroupPermissions['*']['createaccount'] = true;

$wgGroupPermissions['*']['read'] = false;

$wgGroupPermissions['*']['edit'] = false;
Edwinalmeda (talkcontribs)

Whitelisting "Special:RequestAccount" willl not be needed since you have set the permissions of $wgGroupPermissions['*']['createaccount'] to true. which means that anyone can create an account.

Try setting $wgGroupPermissions['*']['createaccount'] = false;

to make requesting an account relevant

Seb35 (talkcontribs)

Indeed, this configuration is a bit weird. Note that, by default, there is $wgGroupPermissions['*']['createaccount'] = false; executed by this extension (see phabricator:diffusion/ECAC/browse/master/ConfirmAccount.config.php executed from phabricator:diffusion/ECAC/browse/master/ConfirmAccount.php

(I re-close the discussion anyway since no answer from the original author since almost one year.)

Seb35 (talkcontribs)

This was partly in the documentation and I have just added a precision.

PHP Fatal error: Uncaught DBUnexpectedError: Database::close: Got COMMIT while atomic sections AccountRequestSubmission::submit are still open

2
Summary by Seb35

Forgotgen update.php.

ChrisC~mediawikiwiki (talkcontribs)

On a new MediWiki 1.28.2 install running on Debian Stretch (Apache 2.4.25-3, mod_php 7.0.19 and MariaDB 10.1.23-9) with the following Extension:ConfirmAccount configuration:

require_once "$IP/extensions/ConfirmAccount/ConfirmAccount.php";
$wgConfirmAccountRequestFormItems = array(
        'UserName'        => array( 'enabled' => true ),
        'RealName'        => array( 'enabled' => true ),
        'Biography'       => array( 'enabled' => true, 'minWords' => 10 ),
        'AreasOfInterest' => array( 'enabled' => true ),
        'CV'              => array( 'enabled' => false ),
        'Notes'           => array( 'enabled' => false ),
        'Links'           => array( 'enabled' => true ),
        'TermsOfService'  => array( 'enabled' => true ),
);

When you request an account an error like this is generated for the user requesting an account:

Database error

A database query error has occurred. This may indicate a bug in the software.

[ff83f4da27ff532eecb2267e] 2017-06-20 19:35:14: Fatal exception of type "DBQueryError"

And the following error is generated in the Apache error log:

[Tue Jun 20 19:35:14.269289 2017] [:error] [pid 8564] [client XX.XX.XX.XX:54177] PHP Fatal error:  Uncaught DBUnexpectedError: Database::close: Got COMMIT while atomic sections AccountRequestSubmission::submit are still open. in /home/badge/sites/default/w/includes/libs/rdbms/database/Database.php:2756\nStack trace:\n#0 /home/badge/sites/default/w/includes/libs/rdbms/database/Database.php(708): Database->commit('Database::close', 'flush')\n#1 /home/badge/sites/default/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(976): Database->close()\n#2 /home/badge/sites/default/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1377): LoadBalancer->{closure}(Object(DatabaseMysqli))\n#3 /home/badge/sites/default/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(977): LoadBalancer->forEachOpenConnection(Object(Closure))\n#4 /home/badge/sites/default/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(968): LoadBalancer->closeAll()\n#5 /home/badge/sites/default/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1556): LoadBalancer->disable()\n#6 [internal function]: LoadBalancer->__destruct()\n#7 {main}\n  thrown in /home/badge/sites/default/w/includes/libs/rdbms/database/Database.php on line 2756, referer: https://badge.wiki/wiki/Special:RequestAccount

Does anyone have any suggestions how to further debug or even solve this issue?

ChrisC~mediawikiwiki (talkcontribs)

So sorry I missed the need to run the update.php script in the install instructions to generate the database tables needed after running that the plugin works without an issue.

Jakeschroeder (talkcontribs)

It seems it is not possible to write custom css for the Request Account page because no html element on this page has an ID or a class name. I am creating my own skin and I want to be able to change the width of inputs, background color, etc. but I don't want to pollute those components' styles for the entire site.

For example I want the input's background color to be gray on the Request Account page but green on any other page. So how can access just the Request Account page's html elements in my stylesheet.

Thanks so much.

Reply to "Custom CSS for Request Account Page?"

Error 500 on Special:ConfirmAccounts Only

4
68.53.246.183 (talkcontribs)

This is the only page with the error.

68.53.246.183 (talkcontribs)

This is the error: PHP Fatal error: Call to undefined method ConfirmAccountsPage::getLinkRenderer() in /home/user/public_html/wiki/extensions/ConfirmAccount/frontend/specialpages/actions/ConfirmAccount_body.php on line 211

Spas.Z.Spasov (talkcontribs)

Did you apply php $IP/maintenance/update.php?

Jlkzer (talkcontribs)

yes i run update.php but Special:ConfirmAccounts still show error 500 page

Reply to "Error 500 on Special:ConfirmAccounts Only"
138.162.128.54 (talkcontribs)

Is there a way to limit the requesting users email to a particular domain, ie just .mil, or just .edu?

Reply to "Limiting the email to a domain"

Adding requesting users email address

1
138.162.128.54 (talkcontribs)

How can I get the requesting users email address added to the email sent to the person(s) who will be approving the account?

Reply to "Adding requesting users email address"