コード例 #1
0
ファイル: commands.py プロジェクト: kuasha/cosmos
    def create_admin_user(self):
        username = self.get_input('Enter admin username: '******'Enter admin password: '******'Repeat admin password: '******'Enter admin email: ')
        self.create_user(username, password, email, [ADMIN_USER_ROLE_SID])
        sys.exit(0)
コード例 #2
0
    def create_admin_user(self):
        username = self.get_input('Enter admin username: '******'Enter admin password: '******'Repeat admin password: '******'Enter admin email: ')
        self.create_user(username, password, email, [ADMIN_USER_ROLE_SID])
        sys.exit(0)
コード例 #3
0
ファイル: test_auth.py プロジェクト: shamsularefin/cosmos
 def test_get_hmac_password(self):
     password = get_hmac_password("Test$passw0Rd", "hfdgytriuyewt&^54763254jhdgfsd")
     self.assertEquals(password, "hmac:ebbd4e004c511dc0b43aa4e249128e65")
コード例 #4
0
ファイル: test_auth.py プロジェクト: kuasha/peregrine
 def test_get_hmac_password(self):
     password = get_hmac_password("Test$passw0Rd", "hfdgytriuyewt&^54763254jhdgfsd")
     self.assertEquals(password, "hmac:ebbd4e004c511dc0b43aa4e249128e65")