Skip to content

Create password policy #4

Description

@lamoboos223
package example

default allow = false

is_valid_password(password) {
    count(password) == 18
    re_match("[A-Za-z0-9!@#$%^&*()_+{}|:\"<>?`~-]+", password)
}

allow {
    is_valid_password(input.password)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions