Hello,

This module provides a simple secret registration code feature on user registration form. Basically, users can not complete the registration form unless they know the secret code field value that was configured.

The secret code is stored as a plain text by either admin or any role that have permission to configure the module.

Project link

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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    ryangambito created an issue. See original summary.

    vishal.kadam’s picture

    Thank you for applying! Reviewers will review the project files, describing what needs to be changed.

    Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

    To reviewers: Please read How to review security advisory coverage applications, What to cover in an application review, and Drupal.org security advisory coverage application workflow.

    While this application is open, only the user who opened the application can make commits to the project used for the application.

    Reviewers only describe what needs to be changed; they don't provide patches to fix what reported in a review.

    vinaymahale’s picture

    Ran PHPCS tests. No issues were found. Let's wait for other reviewers

    avpaderno’s picture

    Status: Needs review » Needs work

    I do not have enough time to make a complete review, but this should be fixed before doing further commits.

    The correct branch names end with the literal .x, as described in Release branches. Branch names like 1.0.1, 1.0.1-dev, 1.0.x-dev are wrong branch names; those branches need to be deleted. Drupal.org repositories do not use the master branch; in future, main will be a supported branch name, but for the moment, it is better to avoid using it.

    ryangambito’s picture

    Ok, I have cleaned up the branches.

    avpaderno’s picture

    Status: Needs work » Needs review
    avpaderno’s picture

    Priority: Normal » Major

    I am changing priority as per Issue priorities.

    To the reviewers

    Please set the priority to Normal after a review.

    vishal.kadam’s picture

    Priority: Major » Normal
    Status: Needs review » Needs work

    1. main is a wrong branch name, as branch names end with the literal .x. That branch needs to be removed.

    2. Fix phpcs issue.

    phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml ssrc/
    
    FILE: ssrc/src/Form/SsrcConfig.php
    --------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\ConfigFormBase.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------

    3. Replace README.txt file with README.md

    https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...

    avpaderno’s picture

    Priority: Normal » Minor

    I am changing priority as per Issue priorities.

    avpaderno’s picture

    main will be a supported branch in future, but for the moment it is better not to use it. It is not wrong, but it is not completely supported on drupal.org.

    vishal.kadam’s picture

    Status: Needs work » Closed (won't fix)

    This thread has been idle, in the Needs work state with no activity for several months. Therefore, I am assuming that you are no longer pursuing this application, and I marked it as Closed (won't fix).

    If this is incorrect, and you are still pursuing this application, then please feel free to re-open it and set the issue status to Needs work or Needs review, depending on the current status of your code.

    ryangambito’s picture

    Priority: Minor » Normal
    Status: Closed (won't fix) » Needs review

    Hi, I have updated the branch https://git.drupalcode.org/project/ssrc with the requested fix.

    avpaderno’s picture

    Priority: Normal » Minor
    vishal.kadam’s picture

    Status: Needs review » Needs work

    1. FILE: README.md

    The module uses a README.md file instead of a README.txt file. While the Drupal coding standards have not been yet updated about that, the Drupal.org community consider that positive.
    Since there is a README.md file, that should follow the content and formatting described in README.md template.

    2. FILE: ssrc.module

    /**
     * @file
     * Simple Secret Register Code module.
     */

    The usual description for a .module file is Hook implementations for the [module name] module. where [module name] is the module name given in the .info.yml file.

    /**
     * Implements hook_form_FORM_ID_alter().
     */
    function ssrc_form_user_register_form_alter(&$form, FormStateInterface $form_state, $form_id) {

    The description for that hook should also say for which form that hook is implemented, either by indicating that with the name of the class that implements the form (namespace included) or the form ID (which is usually indicated by getFormId()).

    ryangambito’s picture

    I have updated the README.md and ssrc.module file with requested fix.

    ryangambito’s picture

    Status: Needs work » Needs review
    vishal.kadam’s picture

    Rest seems fine to me.

    Let’s wait for other reviewers and Code Review Administrator to take a look and if everything goes fine, you will get the role.

    avpaderno’s picture

    Priority: Minor » Normal
    avpaderno’s picture

    Status: Needs review » Needs work

    Please, disregard this comment.

    avpaderno’s picture

    Assigned: Unassigned » avpaderno
    Status: Needs review » Reviewed & tested by the community

    Thank you for your contribution and for your patience with the review process!

    I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.

    These are some recommended readings to help you with maintainership:

    You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
    Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

    I thank the dedicated reviewers as well.

    avpaderno’s picture

    Status: Reviewed & tested by the community » Fixed

    Status: Fixed » Closed (fixed)

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

    avpaderno’s picture