ESP8266 and RC522 not working

It goes bright when I connect the pins but after the code runs or as soon as I press reset it is dim then forever until I remove the power pin of rfid and connect again.
Can you share me the code and photo of connections if possible?