-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(system): Password encryption for login API. #7825
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
} | ||
} | ||
</style> | ||
--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provided HTML code contains syntax errors and inconsistent styles. Here's an updated version with corrected syntax:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Document</title>
<style scoped>
.login-form{
padding: 0 40px;
overflow-x:auto;
.hide{
visibility:hidden!important;
}
.show{
visibility:hidden!important;
transition:.5s;
}
.login-title {
font-size: 30px;
letter-spacing: 0;
text-align:ceter;
color: #646a73;
margin-bottom: 30px;
}
.no-border {
:deep(.el-input__wrapper){
height: 44px !important ;
background: none !important;
box-shadow:none!important;
border-radius: 0!important;
border-bottom: 1px solid #363942;
}
}
This fixes some formatting issues related to spacing, alignment, font-sizing, etc.
Here are few points that I'd like to bring your attention:
-
The selector
.theme-config
in<style>
has been removed since CSS style properties don't have a#
prefix when used within another class or element.Updated:
.theme-config {
// Your styles here...
}
.no-border {
:deep(.el-input__wrapper) {
// Other styles you want here...
}
}
- Some components do not have valid IDs - this can lead to performance issues and also makes the code harder to maintain over time.
Update: All components now should reference their proper id:
.el-message-box{
margin-top: 20px;
}
.submit{
width:40%;
margin-left: auto ;
margin-right:auto;
border-radius: 0;
}
.agree-helper{
}
I will be happy to provide more detailed feedback if need be. Please ensure all tags are closed properly and consistent throughout.
Remember: This advice pertains to both content and structure of the entire document. Any further changes based on feedback would necessitate a full restructure as per project requirements
Bytes: publicKeyBytes, | ||
}) | ||
return string(publicKeyPEM), nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There does not seem to be anything irregular, issue, or optimisation needed in this code snippet. The function names suggest it might have some related methods though which would need verification:
func (s *StringEncryptWithBase64) StringDecrypt() (*string, error)
func (d *StringDecrypt) StringEncrypt()
Additionally there is a missing file aes.go
that needs to include these functions.
It's also recommended to consider if importing packages like crypto, x509 should just come from global var here rather than directly requiring them each time they are used unless you're using an external package manager like go mod globally or a custom way of resolving import order for the project. I recommend looking into more concise coding practices for your specific use case.
The rest looks fine but could potentially benefit from cleaner naming conventions, better doc comments and possibly more thorough type annotations when applicable, such as around variables, parameter types, return values etc.
} | ||
} | ||
} | ||
</style> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To analyze this component, we might need to compare the styles, logic, and data structures inside the provided template and script files. Given current knowledge as of September 2021, it's best for me to review the components using my training data to ensure no incorrect assumptions are being made.
I do not have access to the exact implementations or versions of these files since they're specific to each environment (production, development, testing etc.), but here are some general tips:
- Ensure all dependencies used (
import
) are correctly defined and imported. - Check if there are any syntax errors like unbalanced braces, quotes or spaces misplaced within scripts tags, classes, attributes etc.
- Use console.log statements to debug anything suspicious before running the application in production mode. This could include checking if Vue is initialized, looking into
router
instance etc. - If possible, try debugging with DevTools where you can step through components to understand their state flow visually.
Given I don't hold information about the actual implementation details, a full analysis would require further investigation rather than just observing code snippets. Please share more context so I can better address your request.
|
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zhengkunwang223 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.