This project is based on Social API and Social Auth.
Vipps Login is the easiest way to sign in and create an account. No need to worry about usernames and passwords. All you need to sign in is your phone number.
This project is part of the Drupal Social Initiative and is based on the Social API.

Dependencies

Social Auth

Project link

Social Auth Vipps

Git instructions

git clone --branch '8.x-2.x' https://git.drupalcode.org/project/social_auth_vipps.git

CommentFileSizeAuthor
#2 pareview-3248703-2.txt4.24 KBcmlara

Comments

cristinahart created an issue. See original summary.

cmlara’s picture

Status: Needs review » Needs work
StatusFileSize
new4.24 KB

Automated Review

Please see attached pareview.txt for full output.

  • README.MD file is misnamed.
  • It is customary to use all caps for section headers.
  • Should not have a LICENSE file in repo.
  • Should not access $_GET directly.
  • Functions in .module should have module name prefixed, should be snake_case and have a docbloc.
  • Verify use statement formatting and necessity.
  • Code style around if () statement.
  • Lines should be limited to 80 characters.

Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.

cristinahart’s picture

Status: Needs work » Needs review

Thank you.

Issues fixed list:

  • README.MD file is misnamed. Fixed
  • It is customary to use all caps for section headers. Fixed
  • Should not have a LICENSE file in repos. Fixed
  • Should not access $_GET directly. Fixed
  • Functions in .module should have module name prefixed, should be snake_case and have a docbloc. Fixed
  • Verify use statement formatting and necessity. Fixed
  • Code style around if () statement. Fixed
  • Lines should be limited to 80 characters. According to the attached pareview.txt, this is regarding README.md file.

git clone --branch '8.x-2.x' https://git.drupalcode.org/project/social_auth_vipps.git

rohitrajputsahab’s picture

Still seeing formatting issues and warnings please fix this.

FILE: social_auth_vipps/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------
16 | WARNING | Line exceeds 80 characters; contains 118 characters
22 | WARNING | Line exceeds 80 characters; contains 82 characters
24 | WARNING | Line exceeds 80 characters; contains 134 characters
39 | WARNING | Line exceeds 80 characters; contains 175 characters
46 | WARNING | Line exceeds 80 characters; contains 87 characters
56 | WARNING | Line exceeds 80 characters; contains 140 characters
60 | WARNING | Line exceeds 80 characters; contains 132 characters
68 | WARNING | Line exceeds 80 characters; contains 217 characters
70 | WARNING | Line exceeds 80 characters; contains 390 characters
78 | WARNING | Line exceeds 80 characters; contains 130 characters
----------------------------------------------------------------------

FILE: social_auth_vipps/social_auth_vipps.module
------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------
44 | ERROR | [ ] Missing parameter type
50 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------

FILE: /social_auth_vipps/src/Provider/Exception/EmailNotVerifiedException.php
------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------
22 | WARNING | Possible useless method overriding detected
------------------------------------------------------------------------------------------

rohitrajputsahab’s picture

Status: Needs review » Needs work
cristinahart’s picture

Status: Needs work » Needs review

git clone --branch '8.x-2.x' https://git.drupalcode.org/project/social_auth_vipps.git

Thank you.

rajveergangwar’s picture

Hi,

I have reviewd module, looks good to me but found only below accessibity issue.

social_auth_vipps.module

$form['login_with_vipps_button'] = [
      '#type' => 'item',
      '#markup' => sprintf("<div class='vipps-button-group'><a href='%s' class='%s' id = '%s'><img src='%s' alt=''></a></div>",
        Url::fromRoute('social_auth_vipps.redirect_to_vipps')->toString(),
        'login-with-vipps-link',
        'login-with-vipps-link',
        $btnImg
      ),
      '#weight' => -1,
    ];

In image tag there should be alt tag value for accisiblities for disable person. It would be good if alt can be configurable

About accessibility:
https://accessibility.psu.edu/images/imageshtml/#:~:text=Purpose,a%20tex....

rajveergangwar’s picture

Status: Needs review » Needs work
cristinahart’s picture

Status: Needs work » Needs review

Added an alt value.

git clone --branch '8.x-2.x' https://git.drupalcode.org/project/social_auth_vipps.git

Thank you.

rajveergangwar’s picture

Status: Needs review » Needs work

@cristinahart,
I saw module file, But seems you forget to add translate to alt text

cristinahart’s picture

Status: Needs work » Needs review

You are right. Sorry. It's done now

git clone --branch '8.x-2.x' https://git.drupalcode.org/project/social_auth_vipps.git

rajveergangwar’s picture

Hi @cristinahart,

Thanks for sharing a great module to drupal community. Now it looks good to me.

rajveergangwar’s picture

Status: Needs review » Reviewed & tested by the community

Looks Good

avpaderno’s picture

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

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
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 all the dedicated reviewers as well.

Status: Fixed » Closed (fixed)

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