Convert the template login from wind to cas