mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[feature] Minor refactoring
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.2877 0.290737C12.6782 -0.0997279 13.3152 -0.0958616 13.7057 0.294643C14.096 0.685163 14.1 1.32214 13.7096 1.71261L8.42151 6.99972L13.7096 12.2878C14.0998 12.6784 14.0961 13.3154 13.7057 13.7058C13.3153 14.0962 12.6783 14.0999 12.2877 13.7097L6.99963 8.4216L1.71252 13.7097C1.32204 14.1 0.685046 14.0961 0.294556 13.7058C-0.0959208 13.3153 -0.0997296 12.6783 0.290649 12.2878L5.57874 6.99972L0.290649 1.71261C-0.0998747 1.32209 -0.0959682 0.685168 0.294556 0.294643C0.68508 -0.0958808 1.322 -0.0997871 1.71252 0.290737L6.99963 5.57882L12.2877 0.290737Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 684 B |
@ -142,7 +142,7 @@ router.post('/setup', async (req, res) => {
|
||||
if (!passwordValidationResult.isValid) {
|
||||
return res
|
||||
.status(400)
|
||||
.json({error: 'Password must me at least 8 characters long, contain at least one digit, one uppercase letter and one special character'});
|
||||
.json({error: 'Password must be at least 8 characters long, contain at least one digit, one uppercase letter and one special character'});
|
||||
}
|
||||
|
||||
await passwordManager.saveAdminPassword(ctx, password);
|
||||
@ -178,7 +178,7 @@ router.post('/change-password', requireAuth, async (req, res) => {
|
||||
if (!passwordValidationResult.isValid) {
|
||||
return res
|
||||
.status(400)
|
||||
.json({error: 'Password must me at least 8 characters long, contain at least one digit, one uppercase letter and one special character'});
|
||||
.json({error: 'Password must be at least 8 characters long, contain at least one digit, one uppercase letter and one special character'});
|
||||
}
|
||||
|
||||
if (currentPassword === newPassword) {
|
||||
|
||||
Reference in New Issue
Block a user