Extension talk:ConfirmAccount

Jump to: navigation, search

About this board


Many repeating notification emails to admin

1
Wmat (talkcontribs)

Whenever someone requests an account on my wiki, I get notified of the account request via email, which is good. However, I get notified up to 7 times. Could this be caused by the extension, or is this likely a mail setup issue?

Reply to "Many repeating notification emails to admin"
CalNation (talkcontribs)

Everytime I fill and click the request account button the page loads for a while before it goes blank. Log:

2017-10-18 01:40:16 fbc2b63702c5 wikidb: [71e6cc371daeb32c40983f62] /Special:RequestAccount   Wikimedia\Rdbms\DBQueryError from line 1075 of /var/www/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 

 Query: INSERT  INTO `account_requests` (acr_id,acr_name,acr_email,acr_real_name,acr_registration,acr_bio,acr_notes,acr_urls,acr_type,acr_areas,acr_filename,acr_storage_key,acr_comment,acr_ip,acr_xff,acr_agent,acr_deleted,acr_email_token,acr_email_token_expires) VALUES (NULL,'Wawa','wawa@gmail.com','','20171018013815','','na','','0','',NULL,'wikidb:acctrequest:ip:209.58.135.67','','209.58.135.67','','Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36','0','cdf2692dd4d49a49037dae473e6b92d3','20171117013815')

 Function: UserAccountRequest::insertOn

 Error: 1205 Lock wait timeout exceeded; try restarting transaction (percona)

 #0 /var/www/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

 #1 /var/www/includes/libs/rdbms/database/Database.php(1515): Wikimedia\Rdbms\Database->query(string, string)

 #2 /var/www/extensions/ConfirmAccount/backend/UserAccountRequest.php(358): Wikimedia\Rdbms\Database->insert(string, array, string)

 #3 /var/www/extensions/ConfirmAccount/business/AccountRequestSubmission.php(245): UserAccountRequest->insertOn()

 #4 /var/www/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(344): AccountRequestSubmission->submit(RequestContext)

 #5 /var/www/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(84): RequestAccountPage->doSubmit()

 #6 /var/www/includes/specialpage/SpecialPage.php(522): RequestAccountPage->execute(NULL)

 #7 /var/www/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)

 #8 /var/www/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)

 #9 /var/www/includes/MediaWiki.php(862): MediaWiki->performRequest()

 #10 /var/www/includes/MediaWiki.php(523): MediaWiki->main()

 #11 /var/www/index.php(43): MediaWiki->run()

 #12 {main}

Database schema updater was run more than once with no difference in results.

Aaron Schulz (talkcontribs)

Locking usually just indicates contention. I can't reproduce this on PostgreSQL, which also has similar row-level locking. It might be interference by another extension. You can use SHOW ENGINE INNODB STATUS to see the last deadlock. You might need to adjust innodb_lock_wait_timeout and turn on innodb_deadlock_detect (see https://dev.mysql.com/doc/refman/5.7/en/innodb-deadlock-detection.html ).

CalNation (talkcontribs)

I did enable innodb_print_all_deadlocks. innodb_lock_wait_timeout was already at 120 innodb_deadlock_detect was enabled. Please see the SHOW ENGINE INNODB STATUS output here https://pastebin.com/m9KUwHBf. After multiple failed attempts: https://pastebin.com/cRvB8bEa

Reply to "Works with MW1.29?"

How to edit the request account page user prompts?

2
Rsoandrew (talkcontribs)

I have a very small wiki for a specific group. As part of the request account process, I require them to provide me with verifiable information proving they are in the group or otherwise has a specific interest. Also helps with spam. In a previous version of ConfirmAccount I could just edit the text RequestAccountPage.i18n.php file to change the prompts and get the user to add the information I need into the biography field.

When I upgraded to Mediawiki 1.28, I also had to reinstall ConfirmAccount. In the most recent version of ConfirmAccount, the file that I edited previously doesn't seem to exist and I can't figure out where the plain text prompt strings are stored.

Can somebody point me in the right direction?

Aaron Schulz (talkcontribs)

Edit i18n/requestaccount/<lang>.json .

Better yet, just edit MediaWiki:<name of the message in lowercase> to override it.

s

Reply to "How to edit the request account page user prompts?"

Avoiding initial email address confirmation

4
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.

Aaron Schulz (talkcontribs)

Having the email confirmed first discourages spam requests and makes it easier for admins to know how serious the request or whether they control an email from a certain domain (e.g. osu.edu or dmv.ca.gov).

Reply to "Avoiding initial email address confirmation"
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?

Aaron Schulz (talkcontribs)

You can possibly edit MediaWiki:common.js to run of Special:RequestAccount pages (using the mwconfig->get( 'PageName' ) JS variable). It could check the field onChange and show an error and disable the submit button. Requests that make it through anyway (e.g. JS disable) could simply be rejected.

Reply to "Limiting the email to a domain"
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.

Aaron Schulz (talkcontribs)

You can edit MediaWiki:common.css or use the Gadget extension to make a CSS module enabled for all users.

Reply to "Custom CSS for Request Account Page?"
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?

Aaron Schulz (talkcontribs)

You can vastly lower $wgRejectedAccountMaxAge to avoid this kind of problem. Otherwise he can use a different name and then you can use the RenameUser extension to correct it.

Reply to "Remove pending request?"

Error 500 on Special:ConfirmAccounts Only

5
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

MikeDarling (talkcontribs)

What version of MediaWiki did this happen on? I get an Error 500 on the ConfirmAccounts page as well. I'm using MW 1.27.1.

Reply to "Error 500 on Special:ConfirmAccounts Only"

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"