# Summary

utility module which makes the password field optional (or hidden) on the add new user page (admin & registration). If the password field is not set during registration, the system will generate a password. You can optionally display this password at the time it's created.

# Project URL

https://www.drupal.org/project/genpass

# Where is the code?

https://github.com/luksak/genpass

# Estimated completion date

# Dependencies

# Who's doing the port?

# What help do they need?

# D8 roadmap

Meta task list:
1. Create info.yml file. - #2657948: Convert .info into .info.yml file

# Background and reference information

CommentFileSizeAuthor
#11 genpass_8.x.zip16.08 KBKris77
#5 genpass.zip6.63 KBKris77
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhedstrom created an issue. See original summary.

laxman.ghavte’s picture

Assigned: Unassigned » laxman.ghavte
laxman.ghavte’s picture

Issue summary: View changes
naveenvalecha’s picture

Issue summary: View changes
Kris77’s picture

FileSize
6.63 KB

Hi guys,
i have tried to port this module in Drupal 8 version.

I'm not a programming expert but I tried to do my best for this module that is very useful to me in DRUPAL 7.

I don't know how to publish a module, so attach the zip module.

There will definitely pieces of code to fix but for now this works for me.

In my site users can only be created by the administrator.
So, to the users will be sent a message with the data access : Username and Password(by module RPT (Registration Password Token)).

I hope it has been useful and that this module can have a stable version in drupal 8.

I use it in DRUPAL 8.35 with PHP 7.0

Parashram’s picture

rcodina’s picture

@Kris77 The function variable_del no longer exists on Drupal 8. So people won't be able to uninstall this D8 version. Check this URL on detail on how to do the port from D7 to D8:

https://www.drupal.org/docs/8/converting-drupal-7-modules-to-drupal-8/st...

Thanks for your efforts!

Anybody’s picture

How can we proceed here? laxman.ghavte you are still assigned, what's you status about this?

dureaghin’s picture

Now should work. I was able to uninstall this from Drupal 8.

/*
 * Implements hook_uninstall().
 */
function genpass_uninstall() {
  \Drupal::queue('genpass_algorithm')->deleteQueue();
  \Drupal::queue('genpass_display')->deleteQueue();
  \Drupal::queue('genpass_entropy')->deleteQueue();
  \Drupal::queue('genpass_length')->deleteQueue();
  \Drupal::queue('genpass_mode')->deleteQueue();
}

I found another issue, settings are not saved, I will try to fix this.

Thanks,
Alex.

Kris77’s picture

Hi guys,
there is a new version of the module.
After a lot of work, for me that I'm not an expert in programming, I hope it will work. I've been trying it with a site in Drupal 8.5.1

I think I have corrected all the instructions for Drupal8:

  • Installation and uninstallation seem to work now.Thnaks to @dureaghin
  • The settings are saved.

And I have also added the possibility to insert a token [user:password] during user registration. Site administrator allowed to customize the text of the e-mail that is sent to the user after registration.

This last option I took from the rpt module.

Check that there are other errors.

I hope it can be useful for other users.

Kris77’s picture

FileSize
16.08 KB

Ops....I forgot to attach the module.

Lukas von Blarer’s picture

Could whe have this in a 8.x branch or on a sandbox project to facilitate testing of this?

Kris77’s picture

Very willingly.

But how do you create an 8.x branch or a sandbox?
This is my first module for me.

mmjvb’s picture

Suggest to start the procedure for abandoned projects. It seems there is no interest anymore with current maintainers. To create an 8.x branch cooperation of a maintainer is required.

Lukas von Blarer’s picture

Issue summary: View changes

@mmjvb can you do this?

For now I created a repository on github: https://github.com/luksak/genpass

mmjvb’s picture

Suggest someone with more interest in this module does that.

NitinSP’s picture

Hi @Kris77

I Will create 8.x branch for this module. I am a co-maintainer of this project now.

Thanks
NitinSP

Kris77’s picture

Perfect @NitinSP.

If you need help, I will try to make it possible.

Thanks again.

NitinSP’s picture

Hi Kris77,

I have release latest module with tag 8.x-1.x-dev. But still this module is not avaialable for download in project page becuase I was checked "Security Update" checkbox checked at the time of release this module.
I have folow below steps to release this module

1. Create Branch with name 8.x-1.x-dev
2. Commit and push all required file to this branch using command "git push -u origin 8.x-1.x-dev"
3. Using "git tag 8.x-1.0" command create new tag "8.x-1.0"
4. execute "git push origin tags/8.x-1.0" to push all changes to this tag.
5. After that got to project page and click on "Edit" link.
6. Select "Release" tab.
7. For new release click on "Add new release" link
8. After that select "8.x-1.0" tag from "Git release tag or branch" and click on next button.
9. Fill the required information in the form and Save it.

I am not able to understand what is the issue.

mmjvb’s picture

Branch should have been called 8.x-1.x to be consistent, there should only be a tag for 8.x-1.0, not for 8.x-1.x-dev. Not sure whether having a branch and tag with the same name is causing your issue.

NitinSP’s picture

So what can i do to publish this module to download?

NitinSP’s picture

Assigned: laxman.ghavte » NitinSP

@Kris77,
I am release dev version of this module in drupal 8.

NitinSP’s picture

Status: Active » Needs review
NitinSP’s picture

mmjvb’s picture

Status: Needs review » Needs work

Depending on what you want you would need to fix the mistakes as mentioned.
Only when you have tagged an alpha or beta you can set the Status to Needs review. Suggest to read this project on usage of Status.
With a dev release Status should be Needs work !

Anybody’s picture

There's now a stable release from the 8.x branch: https://www.drupal.org/project/genpass/releases/8.x-1.0-beta1

mmjvb’s picture

Status: Needs work » Needs review

As mentioned, with a beta, Status should be Needs review.

Also, calling a beta stable is just bad terminology. The release cycle goes from -dev through alpha, beta, RC to stable. Where stable is the version without any suffix (8.x-1.0 in this case).

greggles’s picture

Status: Needs review » Closed (duplicate)
mmjvb’s picture

Status: Closed (duplicate) » Needs review

No duplicate! D8CPT is for meta issues, see description of this project. Details about the port can be recorded in their own queue as in this case.

greggles’s picture

Status: Needs review » Fixed

OK, then perhaps this should be marked fixed since the port exists?

mmjvb’s picture

Status: Fixed » Needs review

With an alpha or beta the Status should be Needs review. When a Stable is released this issue should be Fixed.

Kris77’s picture

Hi guys,
I'm using this module in production site for a long time without problems.

I think we can release a stable version.

Thank you.

greggles’s picture

Status: Needs review » Fixed
apaderno’s picture

I am giving credits to the users who participated in this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.