Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Reset #193

Merged
merged 21 commits into from Apr 13, 2020
Merged

Password Reset #193

merged 21 commits into from Apr 13, 2020

Conversation

sakeerthy
Copy link
Contributor

@sakeerthy sakeerthy commented Mar 12, 2020

Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
"width": 400,
"height": 400,
"x": 0,
"y": 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x&y are deprecated

"pluginType": "application",
"isSystemPlugin":true,
"webContent": {
"framework": "angular2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

angular

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@1000TurquoisePogs Plenty of apps still have "angular2" btw, not sure if that is a big deal

{username: this.username, password: password, newPassword: newPassword})
.subscribe(
result => {
this.response = result.json().categories.zss.plugins['org.zowe.zlux.auth.zss'].response
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not hardcode plugin names. you need to store which plugins can password reset. utilize the app manager's authentication manager.

@@ -0,0 +1,27 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can delete the environments folders. Its actually not used by angular components, only angular websites. apps are just components.

@@ -0,0 +1,33 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also delete index.html, components dont use it.

},
]
},
'plugins': [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should add in the compress webpack plugin we use in the terminals & virtual-desktop plugins. it makes loading faster because the content is 1/3 the size when compressed.

result => {
let jsonMessage = result.json();
this.expiredPassword = false;
this.loginMessage = jsonMessage.categories.zss.plugins['org.zowe.zlux.auth.zss'].response;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not hardcode this. store knowledge of which plugin is being asked for ahead of time, and look for the one you asked for, or since you only ask to reset 1 password just change the response body to just have the contents of that one plugin, without having the name of it.

@@ -216,14 +251,18 @@ export class LoginComponent implements OnInit {
failedTypes.push(keys[i]);
}
}
this.errorMessage = this.translation.translate('AuthenticationFailed',
if (error.status == 428) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

428 is not a common number (to me) so it should be a constant for readability.

@@ -69,7 +71,7 @@ export class LaunchbarComponent {
if (p.identifier === 'org.zowe.zlux.appmanager.app.propview') {
const pluginImpl:DesktopPluginDefinitionImpl = p as DesktopPluginDefinitionImpl;
this.propertyWindowPluginDef = pluginImpl;
} else if (p.identifier === 'org.zowe.zlux.ng2desktop.settings') {
} else if (SYSTEM_APPS.indexOf(p.identifier) != -1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just fyi this will code conflict with my stuff because i change this too

Suneeth Keerthy and others added 3 commits March 17, 2020 16:09
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Suneeth Keerthy and others added 6 commits March 19, 2020 16:27
…on expire page from overlapping

Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
if (this.newPassword != this.confirmNewPassword) {
this.errorMessage = "New passwords do not match. Please try again.";
} else {
this.authenticationService.performPasswordReset(this.username, this.password, this.newPassword, ZSS_AUTH).subscribe(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to find out the plugin that can do the PW reset by reading the response to login. If you see "canChangePw" on any, record which one, and then use it here. If you find 0, you need to hide the pw panels, and if password=expired, then you just need to fail, rather than provide the reset option if it doesnt exist.

return this.authenticationManager.getUsername() != null ? true : false;
}

hideVisibleApplications(): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JUst change login screen to set the wallpaper and stop being transparent, since it avoids messing around with the windows.

@@ -57,6 +60,10 @@ export class PersonalizationComponent {
"title":this.translation.translate("Languages"),
"imgSrc":"foreign_language",
},
{
"title":CHANGE_PASSWORD,
"imgSrc":"password"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.translation.translate("Password")
In the ja japanese translation JSON file, you can set "password": " パスワード "

Suneeth Keerthy added 3 commits March 25, 2020 16:25
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
Copy link
Member

@1000TurquoisePogs 1000TurquoisePogs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me now, but need one big test before merging.

DivergentEuropeans and others added 6 commits March 27, 2020 13:07
Signed-off-by: Leanid Astrakou <lastrakou@rocketsoftware.com>
Signed-off-by: Leanid Astrakou <lastrakou@rocketsoftware.com>
Signed-off-by: Leanid Astrakou <lastrakou@rocketsoftware.com>
Signed-off-by: Leanid Astrakou <lastrakou@rocketsoftware.com>
…logged in not letting you change the password

Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
sakeerthy and others added 2 commits April 13, 2020 13:34
…VDHosting from auth manaager

Signed-off-by: Suneeth Keerthy <skeerthy@rocketsoftware.com>
@1000TurquoisePogs 1000TurquoisePogs merged commit 30640e0 into zowe:staging Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants