Cron help...

Cron help...

by Sam Wynens -
Number of replies: 6
On my site, I had to turn off email based authentication per the client's request. The only big problem I can see right now with doing this is the creation of blank user accounts.

They show up on the potential students list as " , , " meaning that their firstname, lastname, and payment type are blank.

Would it be possible to insert a block of code to check to see if the firstname field is blank and delete that record from the DB?

Using 1.6.3+

Sam
Average of ratings: -
In reply to Sam Wynens

Re: Cron help...

by Juvenal Sahiri -
Sam,
If you turn off email-based authentication, users create accounts as guests that are confirmed automatically. What you probably need to do is ask them to complete their profile which shows first/last name fields empty.

You could change the text on the login page to say invite users to update their profiles. I don't know which files to edit to do that. The only case where a text box is provided for admin to enter own text for the login page is when he chooses manual account only.
Juvenal
In reply to Juvenal Sahiri

Re: Cron help...

by Sam Wynens -
Yes, I know. The only problem is when a user would mistype their username, the system starts a new, empty account. When the user gets to the profile page, they don't bother filling in the information. So, I'm left with several empty user records.

Instead of me having to go in every so often and removing them from the DB manually, I'd like to automate this into cron that runs in the wee small hours of the morning.

Sam
In reply to Sam Wynens

Re: Cron help...

by Robert Brenstein -
This is a standard feature as of 1.6. See MDL-3309 for details. If it does not get triggered for you for some reason, some small tweak should get it working.
In reply to Robert Brenstein

Re: Cron help...

by Sam Wynens -
Ahhh, I didn't have deleteunconfirmed set.

Thanks.

Sam
In reply to Sam Wynens

Re: Cron help...

by Sam Wynens -

Any idea on how to make this a daily ordeal?

Sam

In reply to Sam Wynens

Re: Cron help...

by Robert Brenstein -
You mean to delete them without a delay? Just reduce the threshold for deleteunconfirmed. I am using 5 days which means there is always a few people without complete signon.