2017-03-16 14:27:55 +00:00
|
|
|
##########################################################################
|
2016-08-09 16:05:40 +01:00
|
|
|
#
|
2017-03-16 14:27:55 +00:00
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
2016-08-09 16:05:40 +01:00
|
|
|
#
|
2018-01-05 10:42:49 +00:00
|
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
2017-03-16 14:27:55 +00:00
|
|
|
# This software is released under the PostgreSQL Licence
|
2016-08-09 16:05:40 +01:00
|
|
|
#
|
2017-03-16 14:27:55 +00:00
|
|
|
##########################################################################
|
2016-08-09 16:05:40 +01:00
|
|
|
|
|
|
|
|
def change_password(self):
|
2017-11-30 13:16:59 +00:00
|
|
|
response = self.tester.get('/browser/change_password', follow_redirects=True)
|
2016-10-07 13:59:43 +01:00
|
|
|
self.assertTrue('pgAdmin 4 Password Change' in response.data.decode(
|
2016-08-09 16:05:40 +01:00
|
|
|
'utf-8'))
|
|
|
|
|
|
2017-11-30 13:16:59 +00:00
|
|
|
response = self.tester.post('/browser/change_password', data=dict(
|
2016-08-09 16:05:40 +01:00
|
|
|
password=self.password,
|
|
|
|
|
new_password=self.new_password,
|
|
|
|
|
new_password_confirm=self.new_password_confirm),
|
|
|
|
|
follow_redirects=True)
|
2016-10-07 13:59:43 +01:00
|
|
|
self.assertTrue(self.respdata in response.data.decode('utf-8'))
|