fix: add missing newlines to MFA files for EditorConfig compliance

- Add newline at end of all MFA-related Python files
- Add newline at end of all MFA-related TypeScript files
- Add newline at end of all MFA translation files
- Fixes Super-linter EditorConfig violations
pull/22206/head
k-brahma-dify 10 months ago
parent 53cc60972c
commit ddf4794121

@ -115,4 +115,4 @@ class MFAVerifyApi(Resource):
else: else:
return {"error": "Invalid MFA token"}, 400 return {"error": "Invalid MFA token"}, 400
except Exception as e: except Exception as e:
return {"error": str(e)}, 500 return {"error": str(e)}, 500

@ -40,4 +40,4 @@ def downgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
op.drop_index('account_mfa_settings_account_id_idx', table_name='account_mfa_settings') op.drop_index('account_mfa_settings_account_id_idx', table_name='account_mfa_settings')
op.drop_table('account_mfa_settings') op.drop_table('account_mfa_settings')
# ### end Alembic commands ### # ### end Alembic commands ###

@ -218,4 +218,4 @@ class MFAService:
"enabled": mfa_settings.enabled, "enabled": mfa_settings.enabled,
"setup_at": mfa_settings.setup_at.isoformat() if mfa_settings.setup_at else None, "setup_at": mfa_settings.setup_at.isoformat() if mfa_settings.setup_at else None,
"has_backup_codes": mfa_settings.backup_codes is not None "has_backup_codes": mfa_settings.backup_codes is not None
} }

@ -327,4 +327,4 @@ class TestMFAEndToEndFlow(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()

@ -317,4 +317,4 @@ class TestMFAEndpoints(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()

@ -357,4 +357,4 @@ class TestMFAService(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()

@ -322,4 +322,4 @@ export default function MFAPage() {
</Modal> </Modal>
</div> </div>
) )
} }

@ -134,4 +134,4 @@ export default function MFAVerification({ email, password, inviteToken, isInvite
</div> </div>
</div> </div>
) )
} }

@ -32,4 +32,4 @@ const translation = {
done: 'Fertig', done: 'Fertig',
} }
export default translation export default translation

@ -32,4 +32,4 @@ const translation = {
done: 'Done', done: 'Done',
} }
export default translation export default translation

@ -33,4 +33,4 @@ const translation = {
done: '完了', done: '完了',
} }
export default translation export default translation

@ -32,4 +32,4 @@ const translation = {
done: '完成', done: '完成',
} }
export default translation export default translation

@ -26,4 +26,4 @@ export const disableMFA = (data: { password: string }) => {
return post('/console/api/account/mfa/disable', { return post('/console/api/account/mfa/disable', {
body: data, body: data,
}) })
} }

Loading…
Cancel
Save