File: passwd_confirm

package info (click to toggle)
python-milc 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 788 kB
  • sloc: python: 1,868; sh: 55; makefile: 3
file content (20 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
"""Given two passwords make sure they match.

PYTHON_ARGCOMPLETE_OK
"""
from milc import cli
from milc.questions import password


@cli.entrypoint('Check that two passwords match.')
def main(cli):
    pw = password(confirm=True, confirm_limit=1)
    if pw is None:
        return 1

    return 0


if __name__ == '__main__':
    exit(cli())